Changeset 2834354
- Timestamp:
- 12/15/2022 11:15:06 AM (3 years ago)
- Location:
- hfd-epost-integration
- Files:
-
- 75 added
- 3 edited
-
tags/1.4 (added)
-
tags/1.4/class (added)
-
tags/1.4/class/Admin.php (added)
-
tags/1.4/class/App.php (added)
-
tags/1.4/class/AutoLoad.php (added)
-
tags/1.4/class/Cache.php (added)
-
tags/1.4/class/Cart (added)
-
tags/1.4/class/Cart/Pickup.php (added)
-
tags/1.4/class/Container.php (added)
-
tags/1.4/class/DataObject.php (added)
-
tags/1.4/class/Filesystem.php (added)
-
tags/1.4/class/Helper (added)
-
tags/1.4/class/Helper/Hfd (added)
-
tags/1.4/class/Helper/Hfd.php (added)
-
tags/1.4/class/Helper/Hfd/Api.php (added)
-
tags/1.4/class/Helper/Spot.php (added)
-
tags/1.4/class/Order (added)
-
tags/1.4/class/Order/Pickup.php (added)
-
tags/1.4/class/Registry.php (added)
-
tags/1.4/class/Setting.php (added)
-
tags/1.4/class/Shipping (added)
-
tags/1.4/class/Shipping/Additional.php (added)
-
tags/1.4/class/Shipping/Epost.php (added)
-
tags/1.4/class/Shipping/Govina.php (added)
-
tags/1.4/class/Shipping/Home_Delivery.php (added)
-
tags/1.4/class/Template.php (added)
-
tags/1.4/css (added)
-
tags/1.4/css/admin.css (added)
-
tags/1.4/css/images (added)
-
tags/1.4/css/images/ui-icons_444444_256x240.png (added)
-
tags/1.4/css/images/ui-icons_555555_256x240.png (added)
-
tags/1.4/css/images/ui-icons_777620_256x240.png (added)
-
tags/1.4/css/images/ui-icons_777777_256x240.png (added)
-
tags/1.4/css/images/ui-icons_cc0000_256x240.png (added)
-
tags/1.4/css/images/ui-icons_ffffff_256x240.png (added)
-
tags/1.4/css/jquery-ui.min.css (added)
-
tags/1.4/css/style.css (added)
-
tags/1.4/data (added)
-
tags/1.4/data/city.csv (added)
-
tags/1.4/hfd-woocommerce-epost.php (added)
-
tags/1.4/images (added)
-
tags/1.4/images/grn-dot.png (added)
-
tags/1.4/images/icon_sprite.png (added)
-
tags/1.4/images/red-dot.png (added)
-
tags/1.4/js (added)
-
tags/1.4/js/checkout.js (added)
-
tags/1.4/js/common.js (added)
-
tags/1.4/js/epost-admin.js (added)
-
tags/1.4/js/epost-list.js (added)
-
tags/1.4/js/infobox.js (added)
-
tags/1.4/js/jquery-ui.button.js (added)
-
tags/1.4/js/jquery-ui.data.js (added)
-
tags/1.4/js/jquery-ui.dialog.js (added)
-
tags/1.4/js/jquery-ui.focusable.js (added)
-
tags/1.4/js/jquery-ui.position.js (added)
-
tags/1.4/js/jquery-ui.tabbable.js (added)
-
tags/1.4/js/jquery-ui.unique-id.js (added)
-
tags/1.4/js/jquery-ui.widget.js (added)
-
tags/1.4/js/map.js (added)
-
tags/1.4/js/pickup-post.js (added)
-
tags/1.4/js/translator.js (added)
-
tags/1.4/languages (added)
-
tags/1.4/languages/betanet_epost-he_IL.mo (added)
-
tags/1.4/languages/betanet_epost-he_IL.po (added)
-
tags/1.4/languages/betanet_epost.pot (added)
-
tags/1.4/readme.txt (added)
-
tags/1.4/templates (added)
-
tags/1.4/templates/admin (added)
-
tags/1.4/templates/admin/notice.php (added)
-
tags/1.4/templates/admin/setting.php (added)
-
tags/1.4/templates/cart (added)
-
tags/1.4/templates/cart/epost-additional.php (added)
-
tags/1.4/templates/cart/footer.php (added)
-
tags/1.4/templates/order (added)
-
tags/1.4/templates/order/pickup.php (added)
-
trunk/class/App.php (modified) (2 diffs)
-
trunk/hfd-woocommerce-epost.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hfd-epost-integration/trunk/class/App.php
r2811095 r2834354 44 44 add_action('woocommerce_after_shipping_rate', array($this, 'renderAdditional')); 45 45 add_action('woocommerce_checkout_order_processed', array($this, 'convertPickupToOrder'), 10, 3); 46 add_action('woocommerce_new_order', array($this, 'convertPickupToOrderOptional'), 10, 2); 46 47 add_action('woocommerce_before_order_itemmeta', array($this, 'adminRenderPickup'), 10, 3); 47 48 add_action('woocommerce_before_checkout_process', array($this, 'validatePickupInfo')); … … 269 270 $cartPickup->convertToOrder($order); 270 271 } 271 272 273 /** 274 * @param int $orderId 275 * @param array $data 276 * @param \WC_Order $order 277 */ 278 279 public function convertPickupToOrderOptional( $orderId, $order ) 280 { 281 /* @var \Hfd\Woocommerce\Cart\Pickup $cartPickup */ 282 $cartPickup = Container::get('Hfd\Woocommerce\Cart\Pickup'); 283 $cartPickup->convertToOrder($order); 284 } 285 272 286 /** 273 287 * @param int $itemId -
hfd-epost-integration/trunk/hfd-woocommerce-epost.php
r2811095 r2834354 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. 36 Version: 1.4 7 7 Author: HFD 8 8 Author URI: https://www.hfd.co.il -
hfd-epost-integration/trunk/readme.txt
r2811095 r2834354 5 5 Requires at least: 4.0 6 6 Tested up to: 6.1 7 Stable tag: 1. 37 Stable tag: 1.4 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.