Question

I want to change email template of stock alert but I could found only single variable in the template file "alertGrid". Please tell me how I will change the alertGrid layout. So, I can change the email template.

Was it helpful?

Solution

The variable which is used in email template {{var alertGrid}} is set from this files.

app\code\core\Mage\ProductAlert\Model\Email.php.

Arround line no. 229 there is function

public function send()

in this function this variable is set, you need to look here how you want change.

And if you want to change in phtml file.

app\design\frontend\base\default\template\email\productalert\stock.phtml

this file called when email send.

Overide that file in your theme, you need to just copy that file to your current theme in same path like

app\design\frontend\[Your There]\template\email\productalert\stock.phtml
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top