Jump to content

Reference # to Mail Alert ?


Recommended Posts

Prestashop 1.4.7    Mail Alerts 2.2

 

Trying to get the reference # to appear in the Out of stock mail alert but just can not seem to get it.

Below is what I have added and how, what am I missing or what is wrong.

 

 

Added - '{reference}' => $_prod->reference, to mailalerts.php

Added - {reference} to productoutofstock.html

 

 

 

mailalerts.php
$templateVars = array(
'{reference}' => $_prod->reference,
'{qty}' => $qty,
'{last_qty}' => (int)(Configuration::get('MA_LAST_QTIES')),
'{product}' => strval($params['product']['name']).(isset($params['product']['attributes_small']) ? ' '.$params['product']['attributes_small'] : ''));
$id_lang = (is_object($cookie) AND isset($cookie->id_lang)) ? (int)$cookie->id_lang : (int)Configuration::get('PS_LANG_DEFAULT');
$iso = Language::getIsoById((int)$id_lang);
 
 
 
productoutofstock.html
<td align="left" style="background-color:red; color:#FFF; font-size: 12px; font-weight:bold; padding: 1.5em 1em;">{reference} - {product} is out of stock.</td>
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...