I’m making a site that sells rare things which are one offs. I want to remove the product once sold from every cart it may be contained in. Like if two people put it in a cart and one buys it, I want to remove it from the second persons cart before they can purchase it since it won’t be available anymore. I can post images of my current stripe checkout and other checkout workflows.
Add an isSold
field to make products as sold then run a backend workflow to pull it from everyone else’s cart. Make sure carts don’t show sold items, and check before checkout so no one buys the same thing twice.
People might feel a bit sad for seeing the product out of their cart, but you can show them a heart, a unique heart. Like this: Ɛ>. The symbol on the left is called backwards 3.
I have an option set of availability with two options: sold and not sold. I haven’t done a backend workflow before, could you elaborate on what you mean? And would I have them reload the cart page when the page is loaded? Thank you for your response!
In my opinion there’s no need to use a backend workflow.
When some user proceed to checkout with a product, just update a Product's available
field to be no
in the product record itself.
In the cart itself just place conditionals that react to Product's available
field being set to no
, e.g. greyed background, show of a info text, summing up available Products only for the total cost…
Then yu just take into account available products when proceeding to checkout.