Adding a discount to abandoned checkout recovery emails can incentivize customers to complete their purchases. Here’s a step-by-step guide to setting up this feature:

Considerations

  1. Messaging: Since the discount isn't automatically explained in the email, you'll need to manually add a message in the email template informing customers about the discount.
  2. Discount Code Names: Avoid using special characters in discount code names to ensure the URL works correctly when customers click through.

Step 1: Set up a Discount Code

  1. Create the Discount:

    • Go to your Shopify admin and navigate to Discounts.
    • Create a new discount code. Choose either a percentage off or a fixed amount off, depending on your promotion.
    • Remember the exact name of your discount code, such as WelcomeBackCreating Discount Code
  2. Configure Abandoned Checkout Settings:

    • Ensure that your abandoned checkout recovery emails are enabled and set up to your preferences under the Checkout settings.

Step 2: Edit the Abandoned Checkout Recovery Notification

Note: These instructions are for the legacy abandoned checkout email template. If you're using a newer version or a different email automation tool, the steps may vary.

  1. Access the Notification Template:

    • Go to Settings > Notifications in your Shopify admin. Navigating Notifications under Setting Page
    • Find and click on Abandoned checkout under the Orders section. Navigating Abandoned Checkout under Order Exception Section Navigating Edit Template for Email
  2. Modify the Email Template:

    • In the Email body (HTML) section, locate the link where customers are prompted to return to their cart. It usually looks something like this: Modifying Email Template for Abandoned Cart
      html
      <td class="button__cell"><a href="{{ url }}" class="button__text">Items in your cart</a></td>
    • Replace {{ url }} with a snippet that appends the discount code to the URL:
      liquid
      {% if url contains '?' %}{{ url | append: '&discount=WelcomeBack' }}{% else %}{{ url | append: '?discount=WelcomeBack' }}{% endif %}
    • Similarly, update any other relevant links to include the discount code. For example:
      html
      <td class="link__cell">or <a href="{{ shop.url | append: '/discount/WelcomeBack' }}">Visit our store</a></td>
  3. Save Your Changes:

    • After making these edits, ensure that you save the template.

Finalizing

  • Test the Process: It’s crucial to place a test abandoned checkout to ensure the discount applies correctly and that the email content explains the discount clearly.
  • Monitor Performance: Keep an eye on how these discounts affect your cart recovery rates. Adjust your strategies based on performance data.

By setting this up, your abandoned checkout recovery emails will automatically include a link that applies the discount code when customers return to complete their purchase. This can effectively decrease cart abandonment and boost conversions.

Back to blog