FREE SHIPPING + DIFFERENT MARKETS

To elevate our customers' shopping experience in the fourth quarter, we're introducing a special offer — free shipping. This strategic move aims to enhance customer satisfaction and drive sales during this peak shopping season.

Go into the code and look for the file

cart-goal

and replace with the following code with this entire code

and adjusting the goal values as needed

 {% if settings.cart_goal_enable and cart.item_count > 0 %}
  
    {% liquid
        case cart.currency.iso_code 
             when 'USD'
                assign goal_value = 0
            when 'AUD'
                assign goal_value = 0
            when 'EUR'
                assign goal_value = 0
            when 'CAD'
                assign goal_value = 0
            when 'JPY'
                assign goal_value = 0
            when 'MXN'
                assign goal_value = 0
            when 'NZD'
                assign goal_value = 0
            when 'NOK'
                assign goal_value = 0
            when 'PLN'
                assign goal_value = 0
            when 'SEK'
                assign goal_value = 0
            when 'CHF'
                assign goal_value = 0
            when 'GBP'
                assign goal_value = 0
        endcase

        assign goal_value_with_cents = goal_value | times: 100

        if cart.total_price < goal_value_with_cents
            assign percentage = cart.total_price | divided_by: goal_value
            assign goal_remaining_money = goal_value_with_cents | minus: cart.total_price | money
            assign desc = settings.cart_goal_description_before | replace: '[amount]', goal_remaining_money
            assign bg_color =  settings.cart_goal_bg_color_before
        else
            assign percentage = 100
            assign desc = settings.cart_goal_description_after
            assign bg_color =  settings.cart_goal_bg_color_after
        endif
    %}
    <div id="cart-goal" class="text-center mb-4">
        <div class="rte small mb-2 {{ color | prepend: 'text-' }}">
            {{ desc }}
        </div>
        <div class="progress" style="height: .5rem;">
            <div 
                class="progress-bar progress-bar progress-bar-animated progress-bar-striped {{ bg_color }}" 
                role="progressbar" 
                aria-valuenow="{{ cart.total_price | money }}" 
                aria-valuemin="0"
                aria-valuemax="{{ goal_value_with_cents | money }}"
                data-width="{{ percentage }}%"
                style="width: 0%;">
            </div>
        </div>
    </div>
{% endif %}

Different markets with different currencies

Please note, only make edits to the code if you are proficient and comfortable with Shopify's theme code editing. Be aware that Ecomgraduates reserves the right to charge for fixing any bugs or issues that arise from modifications not done by our team. Your understanding and attention to this matter are greatly appreciated.

Last updated