Discount when 5 copies of the same product are purchased

  • Posts: 61
  • Thank you received: 6
  • Hikaserial Standard Hikashop Essential
1 week 5 days ago #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

Last edit: 1 week 5 days ago by marcmarc.

Please Log in or Create an account to join the conversation.

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
1 week 5 days ago #364918

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
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 or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum