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.
-
can you specify what information you want to chage or need to modify. – Dhiren Vasoya Oct 6 '17 at 5:57
-
I want to change the layout of "alertGrid" html, If I will get how to override "alertGrid" html in my theme then i can change layout. – dineshkashera Oct 6 '17 at 6:15
-
Please access this url misfitlondon.co.uk/media/wysiwyg/Products_Back_In_Stock.jpg , i want this type of layout. – dineshkashera Oct 6 '17 at 6:21
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
-
Thanks for Quick response. Sorry sir, but i don't want to change in any model file or controller file , Can i change from phtml file. Because i have to include little bit content and a button. Thanks in advance. – dineshkashera Oct 6 '17 at 6:43
-
you need to check this function, so you find which template file is called. So you need to change into that file. – Dhiren Vasoya Oct 6 '17 at 6:45
-
I update my answer, please check so you get path of phtml file which called while email send. – Dhiren Vasoya Oct 6 '17 at 6:55
-
Thanks, you are really too experience in magento :) . I copy the "stock.phtml" from core and paste at this path in my theme /app/design/frontend/my_theme/default/template/email/productalert/stock.phtml and also change some content in this file but it still get content from core stock.phtml. Is am skip any config setting for override? – dineshkashera Oct 6 '17 at 7:04
-
sir, Please tell me how i will override the stock.phtml file in my custom theme. – dineshkashera Oct 6 '17 at 7:52