tdr170 Posted July 25, 2014 Share Posted July 25, 2014 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 More sharing options...
loulou66 Posted July 25, 2014 Share Posted July 25, 2014 Hi it's ok but $_prod->reference = ?? which function or sql request to fill this variable ? @++ Loulou66 Link to comment Share on other sites More sharing options...
tdr170 Posted July 28, 2014 Author Share Posted July 28, 2014 Sorry but not sure of your answer need more info as I am not sure how to write this code. Anyone else have an answer??? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now