Support » Plugin: Advanced Shipping Validation for WooCommerce » Cart message & AJAX?

  • Hi,

    I like your Plugin very much. But I am missing two features to get a better user experience:

    1. We have activated shipping calculation in the cart. Therefor it would be better to have a first validation in the cart, everytime the shipping is calculated for a new destination.

    2. Would it be possible to refresh the shipping validation immediately when the shipping address is changed? Because at this time the order review also refreshes.

    Before I found your Plugin I have added my own validation codes directly into cart/proceed-to-checkout-button-php and checkout/payment.php.
    There the messages are shown at the bottom, above the Checkout/Buy-Button.
    I like it to have the error message (also) at the top, especially when the shipping validation fails on the checkout page when coming from the cart.
    On the other hand I also disabled the Checkout/Buy-Button with my codes in the template, when the shipping validation fails.

    Maybe it’s possible to add some of this functionality in the future?

    • This topic was modified 8 months, 2 weeks ago by  Apfelbiss.
Viewing 1 replies (of 1 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    Thank you for your message 🙂

    1) This is an interesting idea, though I’m not sure about the implementation. Right now I’m hooking in at the same place where WooCommerce core is doing its validation rules. At the cart there are less fields and thus rules may trigger (say about ‘city’) when there isn’t even a city field available.

    I’ll definitely keep this in mind to investigate when there are more people showing interest for this feature. If you know any, make sure they’ll also let them hear their voice here 😉

    2) This kinda goes with the above and where the current trigger is set. I can imagine this could be useful, but also annoying for customers. E.g. in a scenario where they’re busy modifying the fields but the same error keeps popping up every time they change one field.
    What are you thoughts on that?

    In either way, you can create a custom code snippet and custom trigger the validation rules at the point you want to. I haven’t done that before so I can’t really say how it will work in the mentioned scenario’s, but it should be relatively easy to do and worth testing 😉
    (the function with the validation rules is: wcasv_add_checkout_validation_messages)

    Have a great day!
    Jeroen Sormani

Viewing 1 replies (of 1 total)
  • The topic ‘Cart message & AJAX?’ is closed to new replies.