I’ve been trying, to no avail, create a shopping cart that would let users click on the “add” icon and then add the product to his cart. I created the thing “product”, now many products can be available for the user, like carrots, tomatoes etc in a repeating group scheme.
The problem begins when I try to add the quantity to it, because if I just set a property called “product-quantity” just like any other property like “name” or “picture” and then get the workflow to make change to that “quantity” property, it will change the property in the database and it will affect the product site-wide, not just the cart of this individual user. That would interfere with one user adding to the “quantity” of the “tomato” and then every user online would get its tomato quantity increased.
What I want is just to add a dropdown or numerical input text and then tie that information to the current user’s shopping cart’s product.
Any ideas on how to tackle this problem? I’d love to be answered here or with an example in the forum_app.
Thanks in advance, friends.