MODULES
...
eCommerce
Products

Volume Pricing

7min
offer your customers better prices when they purchase in bulk this feature lets you define as many levels of volume pricing as you like introduction volume pricing allows your client to offer better prices to customers who buy products in greater quantities let's say for example a product normally costs £5, but to encourage larger sales , the following table of prices are available quantity threshold price 1 £5 100 £4 1000 £3 50 if the customer orders 105 items, they will have passed the quantity threshold of 100, so will have access to the price of £4 per product for all 105 items they did not order a high enough quantity to get the best available price attributes at the present, when two alternate versions of the same product with different attributes are present in the cart, both their quantities will be added up and counted towards the volume pricing calculation setting up volume pricing there is no need to implement any front end code in order to start using volume pricing all you need to do is define the pricing in the admin against individual products and those prices will become available outputting volume price information in product layouts you may wish front end to dynamically display the available prices for a product to do so, you can loop over each pricing threshold and display the prices in a table, list or format of your choice inside the product list/ detail page item liquid file, you'll have access to the following fields field name / liquid tag example notes {{this\['volume pricing enabled']}} true contains a boolean if false, normal pricing will be used {{this\['volume pricing']}} { "100" 400, "1000" 350 } contains a json object of the currency thresholds for this product set in admin when stored in the database, this is organised by currency, but front end we'll fetch the relevant currency for you when looping over an object like this\['volume pricing'] , first allows you to access the key (here the quantity threshold) and last allows you to access the value (here the price) first though, we use logic in the first line to check if the pricing has been enabled to avoid confusion and disappointment {% if this \['volume pricing enabled'] == true %} volume pricing options available {% for volume price in this\['volume pricing'] %} purchase more than {{volume price first}} and pay only {{this price currency symbol}} {% include 'modules/siteglide ecommerce/ecommerce/price formatter' price data volume price last %} {% endfor %} {% endif %} accessing volume prices in the order confirmation email inside the order confirmation email, you'll have access to the following relevant fields field name / liquid tag example notes {{product volume pricing original price}} 60 00 a formatted price representing the price of the row, had the better volume price not been applied {{product volume pricing threshold reached}} 4 the highest quantity threshold reached if no volume pricing was accessed, this will have the value nil you can use it in logic to check if volume pricing has been applied see code example below {{product currency symbol}} £ {{product price}} 19 00 this formatted price shows the actual price of the order row this will either be the default price, or a volume price if available the following example shows how the volume pricing can be shown inside a \<td> element in an order confirmation email {% if product volume pricing threshold reached != blank %} {{ product currency symbol }}{{product volume pricing original price}} {{ product currency symbol }}{{product price}} {% else %} {{ product currency symbol }}{{ product price }} {% endif %} see the order confirmation email documentation for more