Hi Wix store's team,
I have got the following idea:
I would like to be able to disable the checkout's button on the checkout page:
it would look something like this
$w("#shoppingCart").disable(); $w("#shoppingCart").enable(); //or better /** * Callback(oldCart, newCart) returns true if cart validate business logic **/ $w("#shoppingCart).onValidation(callback)
That would allow us to better control the shopping flow. Here are a few examples:
Enable checkout only if you provide a password.
Enable checkout only if you have a given paid plan activate
Disable checkout if you have less than 5 distinct items.
Disable checkout if you don't live without a given area.
Disable checkout if total amount is less than $ 500.
Disable checkout at a certain point in time (hours, days, months,...)
Or any combination of above.
All of those examples could be hacked by hiding the page's buttons or the shoppingCart element, but I don't like to use hacks for critical business logic. Also, It's currently complicated to follow the cart's content update on the checkout page (but that's for another request) What do you think? Is this something interesting to develop?