WPIntell

Source evidence

Set minimum & maximum total amount in cart

XT Floating Cart for WooCommerce · support · 2022-11-30T21:02:00+00:00

mixedsentiment
mediumseverity
0.84relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 23 rows with source links

17.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
steph33972 resolved
Hi 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 ! 🙂

Comments

2 shown
XplodedThemes 2022-12-08T15:51:00+00:00

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!

steph33972 2022-12-08T17:11:00+00:00

Ok thank you ! 🙂