How to auto populate a coupon code into a shopping cart for Magento 2

With Remarkety, you can make sure that a coupon code sent to your customer will be automatically applied at checkout. This way, customers will be able to receive their discount in just one step. No need to type in or copy/paste. 

The coupon link will automatically be redirected to the checkout page.

*** This option is available t o the plugin version 2.4.9 only. To install the Remarkety Magento plugin version 2.4.9 click here*** 


Please follow the steps below for using this feature:

1. Inside your Remarkety plugin for M2, go to Remarkety ->Remarkety Settings and enable the Cart Auto Coupon toggle. Then click Save Settings to apply the changes. 



2. Inside Remarkety's editor, make sure that you have configured a coupon promotion in the "Setup" stage. Even if this is a static coupon code (like: 10-OFF), it needs to be configured here:

In the Use case above, a static coupon code option is selected, but of course it possible to use with the personalized coupon code as well.

2. For Cart abandonment campaigns, In the body of the email, highlight the Checkout CTA and add the following to the Action box.  {$order.cartCheckoutUrl}?coupon={$coupon.code}


It is also possible to implement the auto-apply in the Coupon row as well. To do so, highlight the {$coupon.code} text (which will be replaced by the coupon code itself when the email is sent), and click on the link icon. In the Url field type {$order.cartCheckoutUrl}?coupon={$coupon.code} and click Ok.


***When it's not in a cart abandonment campaign, the store can use the direct link to the cart page on Magento2. So instead of using the {$order.cartCheckoutUrl}?coupon={$coupon.code}


And that's it! 

If you have more questions about auto-applying coupon codes in your M2 checkout, contact 

Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.