What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi — I am trying to add a discount to enable free shipping above 100€ total cart value. I tried to s

UK5LF90QJ
UK5LF90QJ Posts: 14 🧑🏻‍🚀 - Cadet
edited October 2019 in Help

Hi — I am trying to add a discount to enable free shipping above 100€ total cart value.
I tried to solve it with discounts and set up one as follows:

  • Cart Rule
  • Calculator Percentage Value 100
  • Apply to Query String shipment-price = '0'
  • Condition: shipment-method = '1'
    However, the rule is not applied. Can you point me towards a possible solution?

Comments

  • ULL0N440J
    ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet
    edited October 2019
    discount_1,Shipping free,Orders from 100€ are free,10000,PLUGIN_CALCULATOR_PERCENTAGE,0,1,2016-01-01,2020-12-31,"( grand-total >= '100,00' )","shipment-method = '1'",cart_rule,,
    

    Add this to discount.csv, introduce it to discount_store.csv and just import it 🙂

  • ULL0N440J
    ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet

    This should work (it does for us)

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 🧑🏻‍🚀 - Cadet

    first thing to check - did you Activate discount?

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 🧑🏻‍🚀 - Cadet

    If you add it through Zed interface it's Inactive by default

  • UK5LF90QJ
    UK5LF90QJ Posts: 14 🧑🏻‍🚀 - Cadet

    jep it is active

  • UK5LF90QJ
    UK5LF90QJ Posts: 14 🧑🏻‍🚀 - Cadet

    oh I'm using b2c demoshop docker with a cleaned database. forgot to mention.

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 🧑🏻‍🚀 - Cadet

    ```
    Calculator Percentage Value 100

    • Apply to Query String shipment-price = '0'
    • Condition: `shipment-method = '1'
      ```` doesnt look like discount on purchases above 100 EUR to me
  • UK5LF90QJ
    UK5LF90QJ Posts: 14 🧑🏻‍🚀 - Cadet

    i was testing and removed the euro condition to see if it gets applied anyway.

  • UK5LF90QJ
    UK5LF90QJ Posts: 14 🧑🏻‍🚀 - Cadet

    the current condition is

    • shipment-method = '1' AND grand-total >= '100'
  • UK5LF90QJ
    UK5LF90QJ Posts: 14 🧑🏻‍🚀 - Cadet

    @ULL0N440J your solution did it — thanks! even though I have no idea why...