I need to show dynamically generated coupon code into my newsletter subscription success message in frontend:

I installed an extension of popup newsletter subscription module in Magento version It's working well and sending the dynamic coupon code in mail, but I need to show a dynamically generated coupon code in my newsletter subscription success message in frontend. How can I do that?


1 Answer 1


So after the some action the customer gets the email with the code.

I assume in the code it's a controller action.

What you need is to add a view for this action (block and template) and in the template show generated coupon code. And the coupon generation function you already have in the module.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.