Create a progress bar which updates automatically

New Member
1 0 0


Each product we have a Goal of 30 units before we start manufacturing the product and I'd like to show the number of units sold whether its value or # of orders (whichever is easier)

Whats different about this is people are able to get people to do a "group buy" offline so we have 2 variants of the same product.

Variant A: 1 unit.
Variant B: 3 units. (Same product)

I've looked at this:

And I'm able to use the [variant.inventory_quantity] and get value, but because i'm not familiar with liquid, how do I do simple math equations eg. Variant B * 3.

After getting the # of units we sold, how do I use that value to create a progress bar using liquid?

Thanks in advance