Conversation
supportHi everyone, I want to set a minimum and maximum amount a customer can buy on my store. (for delivery purposes). First I will look for the ajax “add to cart” function. Then I will add a condition like : “if total_cart is greater than 10 & lower than 100”. With the possibility to disable the “add to cart” button when amount is triggered with an error message. How can I do that? I really need help on this one. Thank you!
Hi @steph33972 , Sorry for the delay! This feature is not something that would be included in our plugin. However, please take a look at this code: https://gist.github.com/xplodedthemes/3b897d696b25c0fd1365b541c915995d You can use it to prevent placing an order within the floating cart until conditions are met. In this case, it’s the minimum order amount, however, you can add your own conditions. Hope this helps!
Ok thank you ! 🙂
Hi @steph33972 , Sorry for the delay! This feature is not something that would be included in our plugin. However, please take a look at this code: https://gist.github.com/xplodedthemes/3b897d696b25c0fd1365b541c915995d You can use it to prevent placing an order within the floating cart until conditions are met. In this case, it’s the minimum order amount, however, you can add your own conditions. Hope this helps!
Ok thank you ! 🙂