Magento – How to Change Product Price Alert Email Template

alertproduct

It seems product_price_alert.html is the only hard coded template. I would like to change this template but there is only one variable inside var alertGrid. I tried to find in what file is formed this variable, the html code which is pasted by Magento inside that template but without success. If anyone knows how to solve this I appreciate for the help.

Best Answer

If you take a look at Mage_ProductAlert_Model_Email and the send() method, you can see that alertGrid can actually depend on the type of request being made.

It is one of either productalert/email_price or productalert/email_stock.

The templates for these are productalert/price.phtml or productalert/stock.phtml respectively which I believe map to template/email/productalert/xxxx.phtml

Related Topic