Calculate Free Shipping Message Function

Go to Storefront -> My Themes -> Customize. (If your store is a new store, you may need to go to Channel Manager -> Themes -> Edit Theme)

In the Theme Editor -> Go to Other Settings / Calculate Free Shipping

When you are happy with your changes, don't forget click Save and Publish to repackage the edited theme.

Go to Marketing -> Promotions -> click button New automatic promotion.

Fill in the content of Promotion Details such as this example below (you can change the price, countries,...)

Fill in the content of Promotion Options such as this example below

This is sample code:

 <span class="congratulation">Congratulations Banner Message <span class="country">All</span></span>

This is sample code:

<span>Upsell Banner Message
    <span class="condition_required">%%condition.required%%</span>
    <span class="condition_matched">%%condition.matched%%</span>
    <span class="condition_remaining">%%condition.remaining%%</span>
    <span class="country">All</span>
</span>

Code explanation:

<span class="country">All</span>

Is the code of country you want to apply discount. Example:

<span class="country"> US,UK,CA </span> is for United State, United Kingdom and Canada
<span class="country"> VN </span> for Vietnam.
If you want to apply discount for all of countries, you can setup All <span class="country">All</span>

When you are happy with your changes, don't forget click Save.

Last updated