Changeset 3021501
- Timestamp:
- 01/14/2024 10:03:15 AM (2 years ago)
- Location:
- hfd-epost-integration/trunk
- Files:
-
- 3 edited
-
hfd-woocommerce-epost.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
templates/cart/footer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hfd-epost-integration/trunk/hfd-woocommerce-epost.php
r3014574 r3021501 4 4 Plugin URI: 5 5 Description: Add shipping method of ePost, allowing the user on the checkout, to select the pickup location point from a google map popup. Also allows to synch the order to HFD API after the order is created. 6 Version: 1. 66 Version: 1.7 7 7 Author: HFD 8 8 Author URI: https://www.hfd.co.il -
hfd-epost-integration/trunk/readme.txt
r3014574 r3021501 5 5 Requires at least: 4.0 6 6 Tested up to: 6.4 7 Stable tag: 1. 67 Stable tag: 1.7 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later -
hfd-epost-integration/trunk/templates/cart/footer.php
r3004105 r3021501 133 133 } 134 134 }); 135 136 if( jQuery( "body" ).hasClass( "woocommerce-cart" ) ){ 137 var mainBlock = jQuery('#israelpost-additional'); 138 if( mainBlock.siblings( 'input.shipping_method' ).is(':checked') ){ 139 if( !cityLoaded || mainBlock.find( '#city-list' ).find( 'option' ).length == 1 ){ 140 EpostList.init({ 141 saveSpotInfoUrl: '<?php echo esc_html( admin_url( 'admin-ajax.php' ) ); ?>', 142 getSpotsUrl: '<?php echo esc_html( admin_url( 'admin-ajax.php?action=get_spots' ) ); ?>', 143 cities: <?php echo json_encode( $helper->getCities() ); ?> 144 }); 145 cityLoaded = true; 146 } 147 mainBlock.show(); 148 }else{ 149 mainBlock.hide(); 150 } 151 } 135 152 }); 136 153 </script>
Note: See TracChangeset
for help on using the changeset viewer.