How to create an automatic discount in the cart according to the subtotal amount ?

Hi guys,

In my stores we have about 150 products. Each of them cost €15.
I’m looking for making an automatic discount :

For example :

  • if you buy 5 products, you will have 10 percent discount on total amount
  • if you buy 10 products, you will have 20 percent discount on total amount
  • and so on , …

Is it possible to code it ?

Thanks for your help,

Ludovic

Hi ludovic, you can’t unfortunately do so, since the current cart API is so limited.

@ahmadnasriya Thank you for your answer.
Limited ok but you cannot do nothing ?
Otherwise something like entering automatically a coupon code according to the client’s subtotal ?
Or something else ?

@ludoviccorpsconscien No you can’t, since the API is limited. You can however put a strip on top of your cart that contains the coupon code so users can easily use.

@ahmadnasriya Yes something manual… Ok thank you for your help

@ludoviccorpsconscien there’s no way around unfortunately :pensive:
Glad to help.