Setting Up Volume Discounts Across a Set of Multiple Products
While FastSpring offers the ability to create volume discounts based on quantity tiers for a specific product, sometimes you might want the discounts to take into account the quantity of all the products in an order. For example, if a customer's shopping cart had 2 of Product A, 5 of Product B, and 7 of Product C, instead of each setting the price based on their own quantity, the unit price of each product can be based on the sum (14 in this example) quantity.
Adding Tags to a Product
Go to SpringBoard's Store Home » Products and Pages. Select the product to which you would like the volume discount applied. Click Edit in the General header. Scroll down to Tags and enter in a simple tag name, such as volumediscount. Tags should be lowercase letters, and cannot include spaces. You will need to use this Tag name for all products that will get this volume discount so make sure you write it down somewhere. Click Save. Repeat this process with all of the products onto which you would like the volume discount applied. A tag set on a product has a value equal to the quantity of the product in an order. If the same tag is set on multiple products, then the value will be the sum of all products (with that tag set) in the order.
Adding a Custom Calculation Price
For each product that will have this volume discount, go to SpringBoard's Store Home » Products and Pages and select your product. Click Prices. Click on the Fixed Price.
For this example, we will make volume discounts for the following quantity tiers:
Quantity | Price per Product |
more than 20 | $12 |
10 - 19 | $14 |
3 - 9 | $16 |
1 - 2 | $18 |
Change the Type to Custom Calculation (Advanced). Under Calculation Settings, enter in the following code:
var q = (tags['volumediscount'] > 0) ? tags['volumediscount'] : quantity; if (q >= 20) { 12; } else if (q >= 10) { 14; } else if (q >= 3) { 16; } else { 18; }
Replace the Tag volumediscount with whatever you entered as the Tag for your products. Replace 20, 10, and 3 with the quantities (the low end of the range) that should produce a lower price. Replace 12, 14, 16, and 18 with your prices. Click Save.
We're Here to Help
If you assistance with setting up volume discounts across a set of multiple products, please open a support ticket.