Magento – Show coupon code in newsletter subscription success message

ce-1.9.1.0couponmagento-1.9newsletter

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 1.9.1.0. 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?

Best Answer

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.

Related Topic