• Resolved Mole_LR

    (@mole_lr)


    Hi!

    For better customer experience I moved shipping methods from Review-Order template to Form Shipping template, additionally created template to show shipping methods in “woocommerce-checkout-shipping-table” table! It is set to update those shipping methods with filter “woocommerce_update_order_review_fragments”!

    Of course, DPD Pickup point selectbox (what appears in the next row under table row “woocommerce-shipping-totals” in Review-Order template) with pickup points does not displays in such case…

    So, question here is – why? Why plugin does not correctly work independent where shipping methods are located? Is there any option (even with change plugin files) to make it working in custom situations (where shipping method is cut from review order table)? Because default WooCommmerce checkout when shipping is located in this review order table for some strange reason is not very good UX!

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dpdbaltics

    (@dpdbaltics)

    Hello, @mole_lr !

    The reason of it not appearing in your created template is because it’s added through action to ‘woocommerce_review_order_after_shipping’

    If you like to change it to your desired template, you should check this function located in DpdParcels.php / DpdSameDayParcels.php / DpdHomeDelivery.php: “init_actions_and_filters”

    The following code is the part that adds the location where it currently is:

    add_action( 'woocommerce_review_order_after_shipping', array( $this, 'review_order_after_shipping' ) );
    add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'checkout_save_order_terminal' ), 10, 2 );
    add_action( 'woocommerce_after_checkout_validation', array( $this, 'validate_selected_terminal' ), 10, 2 );

    As you can see, the first add_action is for location (you can see it by checking ‘review_order_after_shipping’ as it has wc_get_template in it), the second one is for updating post_meta, and the third is for validating if the terminal was selected.

    If you have more questions, please contact us at helpdesk@dpd.lt

    Best Regards,
    DPD Baltic Support.

    • This reply was modified 4 years, 5 months ago by dpdbaltics.
    Thread Starter Mole_LR

    (@mole_lr)

    OK, tnx for explanation… was already on the right way and thought that’s the problem!

    Good also that template customization possible! 🙂

    Was able to achieve what I was need!

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Pickup points list’ is closed to new replies.