I am trying to create a pos system for a pharmacy all things are going great except i am struggling to develop a workflow that allows me to multiply cart items price by quantity in a repeating go so i can display cart totals as the user adds more items and quantities to the cart.
i need assistance please.
Yep this is a common question. My suggested solution below:
Sum up calculations in a repeating group to get a total outside the RG, using custom states.
Setup time: 5 mins. Here’s an example of a shopping cart: Demo and Editor .
Steps:
Add a custom state in the RG for the current sub-total;
Add another custom state in the RG to track the previous value;
Add a custom state outside the RG to hold the grand total;
Set up a workflow when one (or either) of the inputs change:
– Set the value of the “subtotal” custom state = price * quantity (val…
Rob
2 Likes
Guru
July 15, 2021, 9:36am
3
Or you can simply try to calculate sumproduct:
This is what I’m doing for my eCommerce shopping cart.
Ill set it up and give a feed back as soon as possible. thanks for the reply
system
Closed
September 23, 2021, 9:00am
5
This topic was automatically closed after 70 days. New replies are no longer allowed.