Is there a way to validate the quantity again during checkout?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce Is there a way to validate the quantity again during checkout?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100519
    chris
    Participant

    Is there a way to validate the qty again during checkout? I am filtering alg_wc_mppu_get_max_qty to change the max quantity based on the state entered at checkout and it appears that this doesn’t actually validate the qty at that point. Only if they go back to the cart after entering the state.

    #100520
    WPFactory Plugins
    Participant
    Plugin Author

    Hello Chris,
    I created a new option for you on the Frontend section called:
    Validation actions

    In theory you can use this action there:

    woocommerce_review_order_before_submit

    Anyway, I believe you’d have to click on the “Place Order” button to see the notification updated according to the new quantity from the alg_wc_mppu_get_max_qty filter.

    I’m sending you a modified version of the plugin with the new option.
    Let me know if it works for you 😉

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.