Drakinfly Posted August 19, 2015 Share Posted August 19, 2015 (edited) Hi Guys I have the following problem with this auto mailer, the product out of stock notification does not show product ID or the image, please see the example image below, in which file would this mailer be in so I can edit it to show these details ( .php or .tpl ) or is there a setting in the admin panel for this? Any info on this will be greatly appreciated, thanks Edited March 3, 2016 by Drakinfly (see edit history) Link to comment Share on other sites More sharing options...
Drakinfly Posted August 19, 2015 Author Share Posted August 19, 2015 Does any one know how to fix this? Link to comment Share on other sites More sharing options...
Drakinfly Posted August 21, 2015 Author Share Posted August 21, 2015 Please can someone help me out with this. Link to comment Share on other sites More sharing options...
Drakinfly Posted August 24, 2015 Author Share Posted August 24, 2015 Please can someone help out with this, I am stuck and can't find the problem, thanks Link to comment Share on other sites More sharing options...
Drakinfly Posted August 28, 2015 Author Share Posted August 28, 2015 Anyone? or is there no solution for this problem with Prestashop... Link to comment Share on other sites More sharing options...
Drakinfly Posted September 1, 2015 Author Share Posted September 1, 2015 Anyone know? Link to comment Share on other sites More sharing options...
razaro Posted September 1, 2015 Share Posted September 1, 2015 Hi that template by default do not display image and ID but you can try to add that by yourself. Check https://github.com/PrestaShop/mailalerts/blob/master/mailalerts.php#L519 here are template variables set that are used later in email html and txt templates. So to add product id try this $template_vars = array( '{qty}' => $quantity, '{last_qty}' => $ma_last_qties, '{product}' => $product_name, '{productID}' => $id_product ); and then edit both html and txt of productoutofstock email template. And add {productID} with code text you want. For image there is bit more work but try to find php code of some template that already sends email with images. 2 Link to comment Share on other sites More sharing options...
Drakinfly Posted March 3, 2016 Author Share Posted March 3, 2016 I am a bit late, this work 100% form me, thanks razaro for you input it helped a lot. 1 Link to comment Share on other sites More sharing options...
Martin L uniag Posted September 28, 2020 Share Posted September 28, 2020 Hi Razaro, will this code work with Presta 1.7.6, too? And would you please, let me know where exactly in the tpl and txt paste this piece of code? Thank you. Martin 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