Andron777 Posted September 21, 2017 Posted September 21, 2017 (edited) I need to show product condition in mails/en/**order_conf_product_list.tpl** I tried adding {$product['condition']} but i get this error: *Notice: Undefined index: condition in /home/yourserver/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(171) : eval()'d code on line 70* I guess I must make modification of mailalerts.php, but how to get the product condition? if I do {$product|@var_dump} "condition" is not in the array Edited September 21, 2017 by Andron777 (see edit history) Share this post Link to post Share on other sites More sharing options...
Andron777 Posted September 21, 2017 Posted September 21, 2017 I found the solution: Prestashop: 1.6 1. edit classes/PaymentModule.php after line 467 add: 'condition' => $product['condition'], 2. In your email template the file "order_conf_product_list.tpl" use: {$product['condition']} Share this post Link to post 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