• Resolved graphicrt

    (@graphicrt)


    Hi,

    So, the thing is, we got this error on an order, when we tried to print a sticker.
    Is it possible, the customer did not select the pickup location and still could finish the order?

    Looking at the GLS sidebar, the user selected delivery to a Paketomat, but there is no info about the selected location in the sidebar.

    Thanks, Crt

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Goran87

    (@goran87)

    Hi Crt,

    The plugin does have a prevention mechanism, it blocks the order if a Parcel Locker / Parcel Shop method is chosen but no map location has been selected. This is implemented in two places:

    • Classic WooCommerce checkout (the shortcode <code class=””>[woocommerce_checkout]) — handled in <code class=””>class-gls-shipping-checkout.php::validate_gls_parcel_shop_selection() via the woocommerce_checkout_process hook.
    • The new WooCommerce Checkout Block — handled in <code class=””>class-gls-blocks-integration.php::validate_pickup_selection() via the Store API.

    Both refuse to place the order when the pickup point is missing, so in a normal flow this is not possible.

    That said, the validation can be bypassed by external/non-standard checkout flows the plugin can’t hook into. For example, express checkout buttons or some custom checkout pages that do not use standard Woo hooks.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.