Show discount as free shipping

When I create a promo code for free delivery in Expresso Store (version 1.6.0), it seems that I need to set the discount amount to 0 and select "Yes" for free delivery.

This works - but when the user is shown the value of the discounts when ordering, it shows 0.005, which causes some confusion. I can't figure out how to get the order_discount tag to show "Free Shipping." I tried various conditions but no luck.

Can anyone suggest a suggestion on this?

+4
source share
1 answer

The easiest way to show if the proposed promotional code will be free shipping is to use this in your template:

{if promo_code_free_shipping} Your Order Ships for Free {/if} 

Personally, I don’t consider free shipping a discount, for example, I would say that $ 10 for an order of $ 50, so if I saw that the order now had free shipping, I would see that the promo code was applied .

However, if you still want to fulfill the condition with an order discount, try:

 {if order_discount_val == 0} Free Shipping {/if} 

Any variable in the Store that returns a formatted number {price} , {price_inc_mod} , {sale_price} , etc., can be transferred using _val to have an unformatted number returned for use in conditional expressions and similar ones.

+3
source

Source: https://habr.com/ru/post/1444376/


All Articles