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
| <script type="text/javascript"> | |
| $(document).ready(function(){ | |
| $("#myModal").modal('show'); | |
| }); | |
| </script> |
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
| <div id="rr-tabs"> | |
| <ul class="nav nav-pills nav-justified" role="tablist"> | |
| <li role="presentation" class="active"> | |
| <a role="tab" data-toggle="tab" href="#tab-one" aria-expanded="true" aria-controls="tab-one"> | |
| <h4>one</h4> | |
| </a> | |
| </li> | |
| <li role="presentation"> | |
| <a role="tab" data-toggle="tab" href="#tab-two" aria-expanded="false" aria-controls="tab-two"> | |
| <h4>two</h4> |
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
| add_action( 'woocommerce_after_checkout_form', 'bbloomer_disable_shipping_local_pickup' ); | |
| function bbloomer_disable_shipping_local_pickup( $available_gateways ) { | |
| global $woocommerce; | |
| // Part 1: Hide shipping based on the static choice @ Cart | |
| $chosen_methods = WC()->session->get( 'chosen_shipping_methods' ); | |
| $chosen_shipping_no_ajax = $chosen_methods[0]; | |
| if ( 0 === strpos( $chosen_shipping_no_ajax, 'local_pickup' ) ) { |
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
| /** | |
| * Do something if local pickup | |
| */ | |
| add_action( 'woocommerce_after_checkout_form', 'bbloomer_disable_shipping_local_pickup' ); | |
| function bbloomer_disable_shipping_local_pickup( $available_gateways ) { | |
| global $woocommerce; | |
| $chosen_methods = WC()->session->get( 'chosen_shipping_methods' ); | |
| $chosen_shipping_no_ajax = $chosen_methods[0]; |
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
| // Register main datepicker jQuery plugin script | |
| add_action( 'wp_enqueue_scripts', 'enabling_date_picker' ); | |
| function enabling_date_picker() { | |
| // Only on front-end and checkout page | |
| if( is_admin() || ! is_checkout() ) return; | |
| // Load the datepicker jQuery-ui plugin script | |
| wp_enqueue_script( 'jquery-ui-datepicker' ); | |
| } |
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
| <img src="..."class="img-responsive margin-image pull-right"> |
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
| <img src="..."class="img-responsive margin-image pull-right"> |
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
| <img src="..."class="img-responsive margin-image pull-right"> |
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
| <img src="..."class="img-responsive margin-image pull-right"> |
NewerOlder