Script according to purchase amount

  • Posts: 266
  • Thank you received: 7
  • Hikashop Business
1 year 2 months ago #348720

On our website I have several automatic discounts.
I would like that depending on the customer's (total) purchase amount, a message would appear informing that buying X euros would increase the discount.
I think I remember that in a Hikashop update this option was contemplated, but I can't find the code.
Thanks.

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

  • Posts: 81504
  • Thank you received: 13063
  • MODERATOR
1 year 2 months ago #348721

Hi,

You can add a "text" block in the "checkout workflow" of the HikaShop configuration.
And in it, you can use tags like this:

{hkshow mincart=80}If your cart reaches 80€ you'll get an extra discount{/hkshow}

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

  • Posts: 266
  • Thank you received: 7
  • Hikashop Business
1 year 2 months ago #348743

Hi Nicolas.
I can't get it to work.
I have several % discounts depending on the total amount of the order.
I give you several examples.
- Order >200 € and <300 € (5% discount)
- Order >300 € and <400 € (7% discount)
- Order >400 € and <600 € (8% discount)
How can I apply the mincart and maxcart in these cases so that only the corresponding message appears in its amount range?
Thanks

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

  • Posts: 81504
  • Thank you received: 13063
  • MODERATOR
1 year 2 months ago #348751

Hi,

You can use such text:

{hkshow maxcart=200}If your cart reaches 200€ you'll get an extra discount{/hkshow}
{hkshow mincart=200 maxcart=300}If your cart reaches 300€ you'll get an extra discount{/hkshow}
{hkshow mincart=300 maxcart=400}If your cart reaches 400€ you'll get an extra discount{/hkshow}

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

Time to create page: 0.066 seconds
Powered by Kunena Forum