[Skip to main content](#vessel-content)

#   Volume Discount

##

- **[jimmysmooth](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile")**
- [![jimmysmooth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile") Topic Author
- [ Offline](/forum/user/83285-jimmysmooth)

Less More

- Posts: 2
- Thank you received: 0
-
-

1 year 6 months ago [\#367457](#367457) by [jimmysmooth](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile")  *[Volume Discount](/forum/4-how-to/909476-volume-discount#367457 "-- url of the page with the problem -- :   jimmysmoothsbbq.com/shop/product/1-smok-n-salsa-mild  -- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.1  Very new to the backend part of all this. The product is priced by quantity ordered: 1 for $9, 2 for $15, 3 for $21. I have installed the Price Calculation plugin, but can't figure out how to write the necessary formulas. This is what I have so far, but it's not working:  Thanks for any help!")* was created by *[jimmysmooth](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile")*

-- url of the page with the problem -- : [ jimmysmoothsbbq.com/shop/product/1-smok-n-salsa-mild](https://jimmysmoothsbbq.com/shop/product/1-smok-n-salsa-mild)
-- HikaShop version -- : 5.1.6
-- Joomla version -- : 5.3.1

Very new to the backend part of all this. The product is priced by quantity ordered: 1 for $9, 2 for $15, 3 for $21. I have installed the Price Calculation plugin, but can't figure out how to write the necessary formulas. This is what I have so far, but it's not working:

[ ![Screenshotfrom2025-06-0310-11-58.png](/forum/attachment/60579) ](/forum/attachment/60579 "...0310-11-58.png")

Thanks for any help!

- [ ![Screenshotfrom2025-06-0310-11-58.png](/forum/attachment/60579) ](/forum/attachment/60579 "...0310-11-58.png") [ ](/forum/attachment/60579?download=1 "...0310-11-58.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwOTQ3Ni12b2x1bWUtZGlzY291bnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

1 year 6 months ago [\#367458](#367458) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Volume Discount](/forum/4-how-to/909476-volume-discount#367458 "-- url of the page with the problem -- :   jimmysmoothsbbq.com/shop/product/1-smok-n-salsa-mild  -- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.1  Very new to the backend part of all this. The product is priced by quantity ordered: 1 for $9, 2 for $15, 3 for $21. I have installed the Price Calculation plugin, but can't figure out how to write the necessary formulas. This is what I have so far, but it's not working:  Thanks for any help!")*

Hi,

The condition should be: Code:

{cart_product_quantity}==2

because this evaluates a condition in PHP, and in PHP, you need two "=" characters like this to compare the equality of two elements.

And the formula should ideally be: Code:

15/{cart_product_quantity}

because you want to provide the unit price and thus you need to divide the total price by the quantity selected by the user.

The following user(s) said Thank You: [jimmysmooth](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwOTQ3Ni12b2x1bWUtZGlzY291bnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jimmysmooth](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile")**
- [![jimmysmooth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile") Topic Author
- [ Offline](/forum/user/83285-jimmysmooth)

Less More

- Posts: 2
- Thank you received: 0
-
-

1 year 6 months ago [\#367475](#367475) by [jimmysmooth](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile")  Replied by *[jimmysmooth](/forum/user/83285-jimmysmooth "View jimmysmooth's Profile")* on topic *[Volume Discount](/forum/4-how-to/909476-volume-discount#367475 "-- url of the page with the problem -- :   jimmysmoothsbbq.com/shop/product/1-smok-n-salsa-mild  -- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.1  Very new to the backend part of all this. The product is priced by quantity ordered: 1 for $9, 2 for $15, 3 for $21. I have installed the Price Calculation plugin, but can't figure out how to write the necessary formulas. This is what I have so far, but it's not working:  Thanks for any help!")*

Thank you so much, that worked perfectly!

Is there any way to also accommodate the 3 for 21 pricing?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwOTQ3Ni12b2x1bWUtZGlzY291bnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

1 year 6 months ago [\#367476](#367476) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Volume Discount](/forum/4-how-to/909476-volume-discount#367476 "-- url of the page with the problem -- :   jimmysmoothsbbq.com/shop/product/1-smok-n-salsa-mild  -- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.1  Very new to the backend part of all this. The product is priced by quantity ordered: 1 for $9, 2 for $15, 3 for $21. I have installed the Price Calculation plugin, but can't figure out how to write the necessary formulas. This is what I have so far, but it's not working:  Thanks for any help!")*

Hi,

Sure, it's the same principle.
Add a second row to the plugin, and use the condition: Code:

{cart_product_quantity}==3

and the formula: Code:

21/{cart_product_quantity}

You can add as many rows as you want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwOTQ3Ni12b2x1bWUtZGlzY291bnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
