Changeset 3406673
- Timestamp:
- 12/01/2025 10:15:31 AM (3 months ago)
- Location:
- shipany
- Files:
-
- 8 edited
- 1 copied
-
tags/1.1.91 (copied) (copied from shipany/trunk)
-
tags/1.1.91/includes/abstract-shipany-wc-order.php (modified) (1 diff)
-
tags/1.1.91/pages/woocommerce-checkout.js (modified) (4 diffs)
-
tags/1.1.91/readme.txt (modified) (2 diffs)
-
tags/1.1.91/shipany-woocommerce.php (modified) (3 diffs)
-
trunk/includes/abstract-shipany-wc-order.php (modified) (1 diff)
-
trunk/pages/woocommerce-checkout.js (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shipany-woocommerce.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shipany/tags/1.1.91/includes/abstract-shipany-wc-order.php
r3400259 r3406673 627 627 $order_id = ''; 628 628 $wc_order = null; 629 if($obj instanceof \Automattic\WooCommerce\Admin\Overrides\Order){ 629 if($obj instanceof WP_Post){ 630 $order_id = $obj->ID; 631 $wc_order = wc_get_order($order_id); 632 } else { 630 633 $order_id = $obj->get_id(); 631 634 $wc_order = $obj; 632 } else if($obj instanceof WP_Post){633 $order_id = $obj->ID;634 $wc_order = wc_get_order($order_id);635 635 } 636 636 // Get saved label input fields or set default values -
shipany/tags/1.1.91/pages/woocommerce-checkout.js
r3329978 r3406673 9 9 var useDispatch = window.wp.data.useDispatch; 10 10 var wcBlocksData = window.wc.wcBlocksData; 11 var _createChangeLocationElement = undefined; 11 12 12 13 if (typeof lang === 'undefined') { … … 22 23 // TODO: lock input field 23 24 if (window.location.href.includes('checkout') || window.location.href.includes('cart')) { 24 createChangeLocationElement = function () {25 _createChangeLocationElement = function () { 25 26 let defaultLabelName = __('Change address', 'shipany'); 26 27 if (window?.shipany_setting?.shipany_enable_locker_list2_1) { … … 70 71 }); 71 72 }, []); 72 return createElement(ExperimentalOrderShippingPackages, null, showLockerList ? createChangeLocationElement() : []);73 return createElement(ExperimentalOrderShippingPackages, null, showLockerList ? _createChangeLocationElement() : []); 73 74 }, 74 75 scope: 'woocommerce-checkout', … … 103 104 } 104 105 return createElement(ExperimentalOrderShippingPackages, null, [ 105 createChangeLocationElement(),106 _createChangeLocationElement(), 106 107 ]); 107 108 } else { -
shipany/tags/1.1.91/readme.txt
r3400259 r3406673 4 4 Requires at least: 4.1 5 5 Tested up to: 6.8.3 6 Stable tag: 1.1.9 06 Stable tag: 1.1.91 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 71 71 == Changelog == 72 72 73 = 1.1.91 = 74 - Fix High Performance Order Storage compatibility issue 75 - Locker listing page bug fix with other plugins 76 - Fix Cart page select locker list bug 77 73 78 = 1.1.90 = 74 79 - Bug fix -
shipany/tags/1.1.91/shipany-woocommerce.php
r3400259 r3406673 7 7 Plugin URI: http://wordpress.org/plugins/shipany 8 8 Description: ShipAny one-stop logistics platform interconnects WooCommerce to multiple logistics service providers (including SF Express, Kerry Express, SF Cold-Chain, Alfred Locker, Hongkong Post, SF Locker, Convenience Store, etc.) so merchants can enjoy full-set features of logistics automation which disrupt the manual logistics process and bring E-Commerce to new generation. 9 Version: 1.1.9 09 Version: 1.1.91 10 10 Author: ShipAny 11 11 Author URI: https://www.shipany.io … … 591 591 */ 592 592 function addClickAndCollectWidget($method, $index) { 593 $chosen_methods = WC()->session->get('chosen_shipping_methods'); 594 $chosen_shipping = $chosen_methods[0]; 595 596 if (strpos($chosen_shipping, 'local_pickup') === 0 || strpos($method->get_id(), 'local_pickup') === 0) { 597 include_once("pages/click-collect-widget.php"); 598 } else if(ShipanyHelper::get_settings('shipany_locker_list_selector') === 'yes'){ 599 include_once("pages/click-collect-widget.php"); 593 if ($index === 0) { 594 $chosen_methods = WC()->session->get('chosen_shipping_methods'); 595 $chosen_shipping = $chosen_methods[0]; 596 597 if (strpos($chosen_shipping, 'local_pickup') === 0 || strpos($method->get_id(), 'local_pickup') === 0) { 598 include("pages/click-collect-widget.php"); 599 } else if(ShipanyHelper::get_settings('shipany_locker_list_selector') === 'yes'){ 600 include("pages/click-collect-widget.php"); 601 } 600 602 } 601 603 } … … 647 649 class SHIPANY_WC { 648 650 public static $list; 649 private $version = "1.1.9 0";651 private $version = "1.1.91"; 650 652 651 653 protected static $_instance = null; -
shipany/trunk/includes/abstract-shipany-wc-order.php
r3400259 r3406673 627 627 $order_id = ''; 628 628 $wc_order = null; 629 if($obj instanceof \Automattic\WooCommerce\Admin\Overrides\Order){ 629 if($obj instanceof WP_Post){ 630 $order_id = $obj->ID; 631 $wc_order = wc_get_order($order_id); 632 } else { 630 633 $order_id = $obj->get_id(); 631 634 $wc_order = $obj; 632 } else if($obj instanceof WP_Post){633 $order_id = $obj->ID;634 $wc_order = wc_get_order($order_id);635 635 } 636 636 // Get saved label input fields or set default values -
shipany/trunk/pages/woocommerce-checkout.js
r3329978 r3406673 9 9 var useDispatch = window.wp.data.useDispatch; 10 10 var wcBlocksData = window.wc.wcBlocksData; 11 var _createChangeLocationElement = undefined; 11 12 12 13 if (typeof lang === 'undefined') { … … 22 23 // TODO: lock input field 23 24 if (window.location.href.includes('checkout') || window.location.href.includes('cart')) { 24 createChangeLocationElement = function () {25 _createChangeLocationElement = function () { 25 26 let defaultLabelName = __('Change address', 'shipany'); 26 27 if (window?.shipany_setting?.shipany_enable_locker_list2_1) { … … 70 71 }); 71 72 }, []); 72 return createElement(ExperimentalOrderShippingPackages, null, showLockerList ? createChangeLocationElement() : []);73 return createElement(ExperimentalOrderShippingPackages, null, showLockerList ? _createChangeLocationElement() : []); 73 74 }, 74 75 scope: 'woocommerce-checkout', … … 103 104 } 104 105 return createElement(ExperimentalOrderShippingPackages, null, [ 105 createChangeLocationElement(),106 _createChangeLocationElement(), 106 107 ]); 107 108 } else { -
shipany/trunk/readme.txt
r3400259 r3406673 4 4 Requires at least: 4.1 5 5 Tested up to: 6.8.3 6 Stable tag: 1.1.9 06 Stable tag: 1.1.91 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 71 71 == Changelog == 72 72 73 = 1.1.91 = 74 - Fix High Performance Order Storage compatibility issue 75 - Locker listing page bug fix with other plugins 76 - Fix Cart page select locker list bug 77 73 78 = 1.1.90 = 74 79 - Bug fix -
shipany/trunk/shipany-woocommerce.php
r3400259 r3406673 7 7 Plugin URI: http://wordpress.org/plugins/shipany 8 8 Description: ShipAny one-stop logistics platform interconnects WooCommerce to multiple logistics service providers (including SF Express, Kerry Express, SF Cold-Chain, Alfred Locker, Hongkong Post, SF Locker, Convenience Store, etc.) so merchants can enjoy full-set features of logistics automation which disrupt the manual logistics process and bring E-Commerce to new generation. 9 Version: 1.1.9 09 Version: 1.1.91 10 10 Author: ShipAny 11 11 Author URI: https://www.shipany.io … … 591 591 */ 592 592 function addClickAndCollectWidget($method, $index) { 593 $chosen_methods = WC()->session->get('chosen_shipping_methods'); 594 $chosen_shipping = $chosen_methods[0]; 595 596 if (strpos($chosen_shipping, 'local_pickup') === 0 || strpos($method->get_id(), 'local_pickup') === 0) { 597 include_once("pages/click-collect-widget.php"); 598 } else if(ShipanyHelper::get_settings('shipany_locker_list_selector') === 'yes'){ 599 include_once("pages/click-collect-widget.php"); 593 if ($index === 0) { 594 $chosen_methods = WC()->session->get('chosen_shipping_methods'); 595 $chosen_shipping = $chosen_methods[0]; 596 597 if (strpos($chosen_shipping, 'local_pickup') === 0 || strpos($method->get_id(), 'local_pickup') === 0) { 598 include("pages/click-collect-widget.php"); 599 } else if(ShipanyHelper::get_settings('shipany_locker_list_selector') === 'yes'){ 600 include("pages/click-collect-widget.php"); 601 } 600 602 } 601 603 } … … 647 649 class SHIPANY_WC { 648 650 public static $list; 649 private $version = "1.1.9 0";651 private $version = "1.1.91"; 650 652 651 653 protected static $_instance = null;
Note: See TracChangeset
for help on using the changeset viewer.