This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Bootstrap 3 Template</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <!-- Bootstrap core CSS --> | |
| <link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" media="screen"> | |
| <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_free_is_available' ); | |
| function my_hide_shipping_when_free_is_available( $rates ) { | |
| $free = array(); | |
| foreach( $rates as $rate_id => $rate ) { | |
| if( 'free_shipping' === $rate->method_id ) { | |
| $free[ $rate_id ] = $rate; | |
| break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Basic connection to SAP HANA from PHP | |
| * | |
| * This is a sample connection to a SAP HANA system. It includes a proper error messaging so if the connection will fail | |
| * you should be able to get a proper error message. | |
| * | |
| * @license The MIT License (MIT) | |
| * @author Valentin Despa <info[at]vdespa[dot]de> | |
| * @version 1.0 / 04.12.2013 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Set a minimum order amount for checkout | |
| */ | |
| add_action( 'woocommerce_checkout_process', 'wc_minimum_order_amount' ); | |
| add_action( 'woocommerce_before_cart' , 'wc_minimum_order_amount' ); | |
| function wc_minimum_order_amount() { | |
| // Set this variable to specify a minimum order value | |
| $minimum = 50; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * WooCommerce Extra Feature | |
| * -------------------------- | |
| * | |
| * Add custom fee to cart automatically | |
| * | |
| */ | |
| function woo_add_cart_fee() { | |
OlderNewer