Ability to deny Checkout in Wix store

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:

  1. Enable checkout only if you provide a password.

  2. Enable checkout only if you have a given paid plan activate

  3. Disable checkout if you have less than 5 distinct items.

  4. Disable checkout if you don’t live without a given area.

  5. Disable checkout if total amount is less than $ 500.

  6. Disable checkout at a certain point in time (hours, days, months,…)

  7. 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?

3 Likes

Love this idea and fully agree. Please make it happen.

Also you might want to have that validation callback be asynchronous in case we need to validate with a distant service