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:
- Create a percentage discount code or a monetary discount code according to the type of promotion you want to offer.
- 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. - Verify that your abandoned checkout recovery emails are configured to your liking on the Checkout page.
Edit the abandoned checkout email in OrderlyEmails
- Login to OrderlyEmails (Shopify admin -> Apps)
- Click the "Customize" button on your design
- In the editor, select the "Abandoned checkout" email, so you are previewing it.
- Go into the "Button" section of the email
- 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.