Situation:
I have a CPT "Workshops", with a custom field "Available seats".
So when someone enters this page, he'll see for example "Workshop A, available seats = 10"
What I want to accomplish:
After a visitor clicked a button "JOIN", the number of seats should decrease by 1, so that the next visitor will see "Workshop A, available seats = 9"
My question:
Is it possible to save "(current value - 1)" to the field "Available seats" of "Workshop A", after a button has been clicked?
Can I achieve this with Toolset?
You can do this with toolset by using our Hooks to decrease the value but it would need to be done manually.
For e.g you have a Form that only has the button Join on it.
When the user hits Join it will submit the form and in the Hook you will modify the custom field value.
I do recommend using a better solution like Woocommerce that will handle the quantity better because once you click on the Join/Add to Cart button then the quantity will automatically decrease and you will have some record of which user got the seat.