Setting Up Discounts Across a Set of Multiple Products
Many discounts are designed to be used across a set of products. In this article, we discuss the setup process for three special discount types: a discount that is applied to every product in an order; a discount like Buy 5, Get 2 Free; and a discount that is calculated by taking a percentage of the total order.
How to Get a Discount to Apply to Every Product in an Order
If you want to offer a discount that can be used on all products in an order, such as $8 off of each unit, go to SpringBoard's Store Home » Promotions and Appearance » Offers. Click Create Discount.
Enter in a name for your discount that is used to for managerial purposes. Under Discount Type select Amount Off Unit and then enter in the discount amount. Add any conditions to the discount, such as limiting it to a specific product, time period, or coupon code, and click Next.
We also offer detailed information on How to Apply an Offer to a Select Group of Products rather than all products in an order.
How to Offer a Discount like Buy 5, Get 2 Additional Products Free (or 7 Products for the Price of 5)
Once you have added your products, go to SpringBoard's Store Home » Products and Pages and select your product. Click Edit and under Tags (Advanced), enter in a tag name, such as buy5get2free, that will be used for all products that, when combined in an order, will have this type of discount. Click Save. Repeat this process for all products that will have this discount.
For each product that will have this discount, go to SpringBoard's Store Home » Products and Pages and select your product. Click Prices. Click on the Fixed Price.
Change the Type to Custom Calculation (Advanced).
Under Calculation Settings, enter in the following code:
var unitPrice = PRICE; var unitsToBuy = XXX; var unitsForFree = YYY; var s = unitsToBuy + unitsForFree; if (tags['mytag']==s) { unitPrice *= unitsToBuy / s; } unitPrice;
Replace XXX and YYY with your Buy XXX Get YYY free numbers. Replace PRICE with the normal USD price of your products. Replace mytag with the value you entered as the Tag for your products. Click Save.
If your price is set in multiple currencies (in our example below, we use USD, GBP, and EUR), use the following code instead, replacing the same information descibed above and entering the unitPrice for each currency:
var unitPrice; if(currency=='GBP'){ unitPrice = 99;} else if(currency=='USD'){ unitPrice = 155;} else if(currency=='EUR'){ unitPrice = 135;} var unitsToBuy = 1; var unitsForFree = 1; var s = unitsToBuy + unitsForFree; if (tags['mytag']==s) { unitPrice *= unitsToBuy / s; } unitPrice;
Percent-Based Price Calculations for Service or Support
Sometimes you might want to offer, and even encourage, customers to purchase update services or support services. One way to calculate the price for these services is to take a percentage of the total price for all products in an order. In our example below, we will have two products (Product A that costs $10 and Product B that costs $100) and a support service (called Customer Support Plan) with a custom calculation that will cost 30% of the order total.
Once you have added your products, go to SpringBoard's Store Home » Products and Pages and select your product. Click Edit and under Tags (Advanced), enter in a tag name that will be used in the custom calculation to identify this product. In our example, Product A has tag a and Product B has tag b. Click Save. Repeat this process for all products from which the support service price will be calculated.
Now create your product for support services. Make the Display Price $0. Click Prices. Click Create Price. Click Create. Move to Active Status.
Change the Type to Custom Calculation (Advanced). Under Calculation Settings, enter in the following code:
var priceA = 10; var quantityA = (tags['a']>0) ? tags['a'] : 0; var priceB = 100; var quantityB = (tags['b']>0) ? tags['b'] : 0; var percent = 0.3; ((priceA * quantityA) + (priceB * quantityB)) * percent;
Replace 10 and 100 with the cost of your Product A and Product B, respectively. In the code for quantityA and quantityB, replace a and b with whatever you entered as the tag for Product A and Product B, respectively. In the code for percent, replace 0.3 with whatever percentage of the order total you want to charge. Click Save.
We're Here to Help
If you need assistance with creating discounts across a set of products, please open a support ticket.