Offer a discount on additional product for an abandoned cart customer

When Emailing a customer for abandoning his cart, what I to achieve is:

  • offering a discount on the abandoned cart as it is
  • offering a special/higher discount on the abandoned cart in combination with an additional product I choose or a different, higher priced version of an existing one

Can you give me any directions here? I am new to Shopify and the liquid API, have a development background.

What I could not find yet is a method to edit the customers abandoned cart. I understand that this would open dark pattern usage but maybe is it possible by using links? The special discount code would have to be accounted for too with the link, is that possible?

Hi, @Krambude !

Welcome to Shopify Community. My name is Olivia and I work here.

I took a look over your question and I’d be glad to provide further guidance.

Note:

While you cannot edit the actual abandoned cart, you can certainly apply automatic discounts to carts in a few steps.

Follow this complete guide for information on creating the discount codes to be used, down to editing the abandoned checkout recovery notification.

Before you begin

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

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

  1. 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.

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

Edit the abandoned checkout recovery notification

  1. From your Shopify admin, go to Settings > Notifications.

  2. Under Orders, click Abandoned checkout.

  3. In the Email body (HTML) area, find the line that includes the following code:

  4. Copy the code snippet below:

  5. Paste the code snippet to replace {{ url }}.

  6. Find the line that includes the following code:

  7. Copy the code snippet below:

  8. Paste the code snippet to replace {{ shop.url }}.

  9. Replace each instance of ABC with your discount code, for example WelcomeBack. Your code should look like this:

  10. Click Save.

Now all abandoned checkout recovery emails will have URLs ending in discount=WelcomeBack or /discount/WelcomeBack and that discount is automatically applied to their checkout. Make sure you have set up your discount code in order for it to apply properly.

I trust this helps, but let me know if I missed or misunderstood anything.

Warm regards,

1 Like

Hi Olivia,

I managed to follow and do all the required steps. However, when I sent the test email to myself, I don’t see any discount being mentioned within the email. The standard email still goes like “Hi Bob, you added items to your shopping card and haven’t completed your purchase. You can complete it now while they’re still available.” How is the customer to know that I’m offering a discount for the abandoned cart? And how do I edit the email copy to say “complete the purchase with a 10% discount” for example. Hope you can help me with this. Thank you.

Thank you for your reply, @Veronica15 .

Since this change requires code edits to your existing abandoned checkout notification email template, it’s tough to determine why it hasn’t worked without seeing your actual template. Perhaps you can share the full code you are using with me here so I can better guide you with next steps?

Warm regards,

Thanks for your reply Olivia. I managed to edit the codes with resources from Shopify in the end and added the discount myself.

Thank you for the update, @Veronica15 .

I really appreciate you letting me know, and I’m glad to hear it has all worked out. If you have further questions I can help with don’t hesitate to reach back out.

Warm regards,

1 Like