Skip to main content
2 of 2
edited body
mrcl
  • 37
  • 5

Passing the getUnsubscriptionLink method to the Newsletter Subscription Success Email

I would like to make it possible to unsubscribe however with the arrival of an email about the success of the newsletter signup. But the problem I encountered is that I don't have access to the getUnsubscriptionLink method there. Someone direct me how I can do this?

This code doesn't work

<p class="center">
{{trans "At %store_name, we care about your privacy. If you do not want to receive notifications about new offers <a href="%unsubscribe_link"> click here</a>." store_name=$store.getFrontendName() unsubscribe_link=$subscriber.getUnsubscriptionLink() |raw}}
</p>
mrcl
  • 37
  • 5