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

#   Discount when 5 copies of the same product are purchased

##

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

Less More

- Posts: 74
- Thank you received: 7
-
-

1 year 11 months ago -  1 year 11 months ago [\#364915](#364915) by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")  *[Discount when 5 copies of the same product are purchased](/forum/46-discount-coupon/908960-discount-when-5-copies-of-the-same-product-are-purchased#364915 "-- HikaShop version -- : 5.1.1 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2.26  Hi, I need apply a discount of 10% when 5 copies of the same product are purchased.  Let's say:  productA price is 20€ productB price is 30€  what I want to achieve is if one purchases  - 5 x productA = 100€-10% = 90€ - 4 x productB = 120€ - total = 210€  so the discount should be applied individually for all the products in a specific category if the product is bought by 5 (or more)  How can I do that? Thanks")* was created by *[marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")*

-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.1.2
-- PHP version -- : 8.2.26

Hi,
I need apply a discount of 10% when 5 copies of the same product are purchased.

Let's say:

productA price is 20€
productB price is 30€

what I want to achieve is if one purchases

- 5 x productA = 100€-10% = 90€
- 4 x productB = 120€
- total = 210€

so the discount should be applied individually for all the products in a specific category if the product is bought by 5 (or more)

How can I do that?
Thanks

Last edit: 1 year 11 months ago by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi85MDg5NjAtZGlzY291bnQtd2hlbi01LWNvcGllcy1vZi10aGUtc2FtZS1wcm9kdWN0LWFyZS1wdXJjaGFzZWQ/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: 86556
- Thank you received: 14304
-
-

1 year 11 months ago [\#364918](#364918) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount when 5 copies of the same product are purchased](/forum/46-discount-coupon/908960-discount-when-5-copies-of-the-same-product-are-purchased#364918 "-- HikaShop version -- : 5.1.1 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2.26  Hi, I need apply a discount of 10% when 5 copies of the same product are purchased.  Let's say:  productA price is 20€ productB price is 30€  what I want to achieve is if one purchases  - 5 x productA = 100€-10% = 90€ - 4 x productB = 120€ - total = 210€  so the discount should be applied individually for all the products in a specific category if the product is bought by 5 (or more)  How can I do that? Thanks")*

Hi,

So, reading between the lines, I suppose that you also want that:
- 5 x productA = 100€-10% = 90€
- 5 x productB = 150€-10% = 135€
- total = 225€
And also:
- 1 x productA = 20€
- 4 x productB = 120€
- total = 140€
And also:
- 6 x productA = 100€-10%+ 20€ =110€
- total = 110€

Which means: the discount quantity threshold is per product, and the discount can be cumulated with different products of that same category in the cart, and the discount quantity threshold is by steps of 5 and the discount doesn't apply to the products in between the steps.

Combining all this together with what you wrote in your message means that it is difficult to achieve everything with the discount system or the coupon system or the prices system or a combination.

With coupons, with the "auto loaded in cart if possible" setting activated, and product A selected in their "products" setting, and with min / max quantity, you could configure a 10€ coupon, a 20€ coupon, a 30€ coupon, etc so that the system could switch between the coupons of product A based on the quantity of product A in the cart.
And you could configure similar coupons for each product.
However, since the coupon system only supports 1 auto loaded coupon per cart, you couldn't have a coupon from product A and a coupon for product B at the same time in the cart.
You could have the users manually enter coupon codes so that they would be able to add several coupons to a cart (with the multi coupon plugin in our marketplace ).
But it would still require the creation of a lot of coupons. And you would have to provide the codes for each product to the customers. Not ideal.

With prices, in each product you could configure several prices with different "minimum quantities" and adapt the unit price to match with the total amount divided by the quantity. That would require creating one price for each quantity of each product, so not ideal either.

The best would be to develop a small plugin to calculate the discount dynamically and add it to the cart as an "additional fee", similarly to what we did with the global cart fee plugin:
[ www.hikashop.com/marketplace/product/224-global-cart-fee.html](https://www.hikashop.com/marketplace/product/224-global-cart-fee.html)
That way, you don't have anything to manage once the plugin is developed. But it requires a bit of initial development.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi85MDg5NjAtZGlzY291bnQtd2hlbi01LWNvcGllcy1vZi10aGUtc2FtZS1wcm9kdWN0LWFyZS1wdXJjaGFzZWQ/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.043 seconds

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