All Collections
OrderlyEmails
Discounts, Gift cards & Recommended products
Apply automatic discounts to abandoned checkout recovery emails
Apply automatic discounts to abandoned checkout recovery emails

You can automatically apply a discount to your abandoned checkout recovery emails, which send a pre-filled cart to your customers.

Bjorn Forsberg avatar
Written by Bjorn Forsberg
Updated over a week ago

You can automatically apply a discount to your abandoned checkout recovery emails, which send a pre-filled cart to your customers to let them quickly complete their abandoned checkout at a discounted price – they will only need to enter payment details.

Before you begin

To get started setting up a discount for abandoned checkout recovery emails:

  1. Create a percentage discount code or a monetary discount code according to the type of promotion you want to offer.

  2. Make sure to make a note of the name you give your discount code when you create it, for example WelcomeBack . You assign a name to your discount code when you create a discount. Note: Avoid using special characters in your discount names so that your discount names add correctly to your store's checkout URL.

  3. Verify that your abandoned checkout recovery emails are configured to your liking on the Checkout page.

Edit the abandoned checkout email in OrderlyEmails

  1. Login to OrderlyEmails (Shopify admin -> Apps)

  2. Click the "Customize" button on your design

  3. In the editor, select the "Abandoned checkout" email, so you are previewing it.

  4. Go into the "Button" section of the email

  5. Update the "Links to" field as shown below:

Replace:

{{url}}

With:

{% if url contains '?' %}{{ url | append: '&discount=ABC' }}{% else %}{{ url | append: '?&discount=ABC' }}{% endif %}

IMPORTANT: Replace ABC in the example above (2 places) with your discount code, for example WelcomeBack.
​

Now whenever a customer clicks the button in the email, it will automatically apply the discount to their checkout.

Did this answer your question?