• Resolved eoinkennedy

    (@eoinkennedy)


    Hi,

    Using Version 3.3.43.

    Customer chooses Packeta Pickup as shipping method, but doesn’t choose a Pickup location.
    Customer clicks on Close on Location choice screen, but doesn’t change shipping method.

    Order is allowed to proceed, with Shipping address set as Billing Address, instead of Packeta location.

    We charge extra for direct to Billing Address shipping, so this is costing us money.

    Please advise?
    Eoin

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Martin Svoboda

    (@martinsvoboda)

    Hi
    The order should not be able to be sent unless a branch is selected. I tried testing the scenario you described, but not once was I able to send the order without a branch filled.
    Do you have some kind of customized checkout?
    Can I ask for a link to your e-shop?

    Thread Starter eoinkennedy

    (@eoinkennedy)

    Hi,

    No customization of checkout, just standard.

    This is in the PHP error log file, generated at the time of a test order with no pickup point:
    [04-Jan-2022 11:18:16 UTC] PHP Warning: Invalid argument supplied for foreach() in /www/wp-content/plugins/wpify-woo/src/Modules/PacketaShipping/PacketaShippingModule.php on line 323

    E-shop is at https://obleceni-neverest.cz

    Thanks,
    Eoin

    Plugin Contributor Martin Svoboda

    (@martinsvoboda)

    Hi,
    validation occurs based on the shipping method shipping_method sent in the checkout form data ?wc-ajax=checkout.
    Unfortunately, your template or some plugin modifies the checkout process and this information is missing in the sent data https://ctrlv.cz/qMvw That’s why the warning.
    Additional data is sent in a separate request ?wc-ajax=update_order_review. However, this request should be used to update the order in checkout not to send form data. This request is not validated.
    So either you have to write your own function to validate this data or modify the checkout so that it does not send data in two separate requests.

    Thread Starter eoinkennedy

    (@eoinkennedy)

    Hi,

    Disabled all other plugins and customizations, but the problem still occurs.

    In the DB, table wp_woocommerce_order_itemmeta, I have the following lines for an order that had no pickup point chosen
    meta_id order_item_id meta_key meta_value
    9981 1133 method_id packeta
    9982 1133 instance_id 3
    9983 1133 cost 75
    9984 1133 total_tax 0
    9985 1133 taxes a:1:{s:5:”total”;a:0:{}}

    Shipping address for this order was to the customers address.

    These are my entries in shipping_zone_methods table
    zone_id instance_id method_id method_order is_enabled
    1 1 flat_rate 7 0
    1 2 free_shipping 6 1
    1 3 packeta 1 1
    1 4 packeta_106 2 1
    1 5 packeta 8 0
    1 6 packeta_106 9 0
    1 7 local_pickup 3 1
    1 11 free_shipping 5 0
    1 12 local_pickup 4 1

    Happy to send you login details for you to check.

    Eoin

    Plugin Author Daniel Mejta

    (@mejta)

    Hi Eoin,

    thank you for the details. I’ve tested you e-shop and also tested the basic setup of the WooCommerce on our environment. With the basic setup everything works just fine. As my colleague wrote, the problem is that no shipping_method is sent with the /?wc-ajax=checkout request. That causes that shipping method is not validated.

    I haven’t found a reason why the shipping_method is not posted, but I can see that you use Checkout Field Editor Pro plugin. I would try to disable the plugin and see if the shipping_method is posted to /?wc-ajax=checkout.

    If the step above didn’t help, you can order paid support from us on https://support.wpify.io/.

    Have a great day!
    Dan

    Thread Starter eoinkennedy

    (@eoinkennedy)

    Hi,

    Posting this in case anyone has a similar problem.

    I use Divi as the theme, and they recently introduced functions to customize the WC Cart and Checkout modules.
    It seems that this is the cause of my issues, because when I switch back to Storefront theme and use the WC shortcodes, everything works just fine.

    Thanks for your advice and for this plugin.

    Eoin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No Packeta location chosen but order proceeds’ is closed to new replies.