Creating product with variable pricing


I am attempting to create a product where the price of that product changes with the corresponding weight. Unfortunately I have had no luck accomplishing this without massive errors. Any guidance and help would much appreciated.

Look at BDK’s RepeatingGroup Tools Plugin’s Demo. This may be helpful.

The best way to approach this will depend on how your prices are set or calculated.

For instance, does each product have a set price for each possible weight (e.g product 1, weight 1kg = $10; product 1, weight 2kg = $15 etc.)?

Or does the price increase by a set amount (fixed amount or percentage) as the weight increases (e.g. base price = $10; for every 5kg the price increases 10%)?

If it’s the former, then creating a separate datatype for each product/weight price may be best, then load the appropriate one on the page as needed.

If it’s the latter, then you can calculate the price on the page, based on the base price (stored in the DB), and adjusted by your weight selection.

What have you tried so far, and what kind of errors were you getting?

1 Like

I think this is exactly what I need. I greatly appreciate the assist!

1 Like