Plugin Directory

Changeset 2834354


Ignore:
Timestamp:
12/15/2022 11:15:06 AM (3 years ago)
Author:
hfdepost
Message:

bug fixes

Location:
hfd-epost-integration
Files:
75 added
3 edited

Legend:

Unmodified
Added
Removed
  • hfd-epost-integration/trunk/class/App.php

    r2811095 r2834354  
    4444        add_action('woocommerce_after_shipping_rate', array($this, 'renderAdditional'));
    4545        add_action('woocommerce_checkout_order_processed', array($this, 'convertPickupToOrder'), 10, 3);
     46        add_action('woocommerce_new_order', array($this, 'convertPickupToOrderOptional'), 10, 2);
    4647        add_action('woocommerce_before_order_itemmeta', array($this, 'adminRenderPickup'), 10, 3);
    4748        add_action('woocommerce_before_checkout_process', array($this, 'validatePickupInfo'));
     
    269270        $cartPickup->convertToOrder($order);
    270271    }
    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   
    272286    /**
    273287     * @param int $itemId
  • hfd-epost-integration/trunk/hfd-woocommerce-epost.php

    r2811095 r2834354  
    44Plugin URI:
    55Description: 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.3
     6Version: 1.4
    77Author: HFD
    88Author URI: https://www.hfd.co.il
  • hfd-epost-integration/trunk/readme.txt

    r2811095 r2834354  
    55Requires at least: 4.0
    66Tested up to: 6.1
    7 Stable tag: 1.3
     7Stable tag: 1.4
    88Requires PHP: 5.4
    99License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.