Cancellation Management - Add Liquid Code for Shopify Order Confirmation Email Template

Follow

If you choose to use the Cancellation Management in Bold Subscriptions feature and cancellation discount codes, there is a snippet of code you should insert into the "Order confirmation" email Shopify sends out to your customers. 

This snippet of code will stack two coupon codes on top of each other, follow these instructions to insert it:

  1. From Shopify's admin, select Settings.

    select settings

  2. Select Notifications.

    select notifications

  3. Select Order confirmation.

    select order confirmation

  4. Find this section of code:
    {% if discounts.first.code %}
    <tr class="subtotal-line">
    <td class="subtotal-line__title">
    <p>
    <span>Discount ({{ discounts.first.code }})</span>
    </p>
    </td>
    <td class="subtotal-line__value">
    <strong>{{ discounts_savings | money }}</strong>
    </td>
    </tr>
    {% endif %}
  5. Copy this snippet of code and paste it right above the {% endif %}
    <!-- BEGIN: CANCELLATION DISCOUNT --> 
    {% if attributes.cancellation-coupon-code and discounts.first.code != attributes.cancellation-coupon-code %}
    <tr class="subtotal-line">
    <td class="subtotal-line__title">
    <p>
    <span>Cancellation Discount ({{ attributes.cancellation-coupon-code }})</span>
    </p>
    </td>
    <td class="subtotal-line__value">
    <strong>{{ attributes.cancellation-coupon-amount }}</strong>
    </td>
    </tr>
    {% endif %}
    <!-- END: CANCELLATION DISCOUNT -->

    It should look like this when you're done:

    {% if discounts.first.code %}
    <tr class="subtotal-line">
    <td class="subtotal-line__title">
    <p>
    <span>Discount ({{ discounts.first.code }})</span>
    </p>
    </td>
    <td class="subtotal-line__value">
    <strong>{{ discounts_savings | money }}</strong>
    </td>
    </tr>
    <!-- BEGIN: CANCELLATION DISCOUNT --> 
    {% if attributes.cancellation-coupon-code and discounts.first.code != attributes.cancellation-coupon-code %}
    <tr class="subtotal-line">
    <td class="subtotal-line__title">
    <p>
    <span>Cancellation Discount ({{ attributes.cancellation-coupon-code }})</span>
    </p>
    </td>
    <td class="subtotal-line__value">
    <strong>{{ attributes.cancellation-coupon-amount }}</strong>
    </td>
    </tr>
    {% endif %}
    <!-- END: CANCELLATION DISCOUNT -->
    {% endif %}
  6. Select Save.

    select save

That's it!

Helpful Links:

Next Steps:

Blog Posts:

2 out of 2 found this helpful

Comments

0 comments

Please sign in to leave a comment.