Hi Bubblers,
I’m doing a food delivery app and I’m having issues with the ‘‘add to cart’’ button, what I want is: when I click that button the price of the item has to go to ‘‘Total Price’’, please help D:
Thank you!
I imagine there will be more than two items the shopper could add to his cart, so here is how I would do it;
Give each dessert item a ‘state’ called “Price”. Create a “page is loaded” workflow that sets each dessert item’s “Price” to 0.00. Create workflows that run when each “Add to cart” button is clicked. Each workflow will set the dessert items state “Price” to whatever you’re charging for that dessert item. So the Tiramisu “Add to cart” button will trigger a workflow which sets Tiramisu’s price to 5.99 and the Tart “Add to cart” button will trigger a workflow which sets Tiramisu’s price to 7.99.
Then set the Total Price text’s value to Tiramisu’s Price + Tart’s Price". The text will update in real time whenever you add a dessert item, make sense?
Let me know if you run into issues.
Hi, thanks for the help, that totally makes sense I’ll try to do it that way! Hope I don’t have trouble with the workflow editing. Thanks again!
This topic was automatically closed after 70 days. New replies are no longer allowed.