I want to add an unsubscription link to my success mail from Magento (2.x), but all the variables I tried so far are not generating a link.
{{var subscriber.getUnsubscriptionLink}}
{{var subscriber.getUnsubscribeUrl}}
{{var subscriber_data.unsubscription_link}}
{{var subscriber_data.unsubscription_url}}
{{var subscriber.getUnsubscriptionLink()}
I know this question has been asked several times in the past, but I could not find any helpful answer.
Is it even possible to put an unsubscription link into success mails / transactional mails?
Thank you in advance!
Hello @yannicknae2ffc
To add an unsubscribe link to the success mail in Magento 2, you will need to modify the appropriate email template file and include the unsubscribe link within the content of the email. Please follow the steps below for the same:
<p> Thank you for your purchase from our store. If you wish to unsubscribe from future emails, you can do so by clicking <a href="{{config path='web/unsecure/base_url'}}newsletter/manage/unsubscribe/">here</a>. </p>
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9
It's not working, I get 404.