avi_t Posted February 10, 2020 Share Posted February 10, 2020 (edited) in my send function (mail) $products= $this->context->cart->getProducts(); $vars=[ '{products}' =>$products ]; return Mail::send( $idLang=1, $template="example", $subject="some thing", $templateVars= $vars , $to=$toe, null, null, null, null, null, _PS_MODULE_DIR_ . $this->name . '/mails/' ); in my mails directory =>en i have example.html and example.txt how can i loop throw the products? in thows files i tried to add example.tpl but that not working Edited February 10, 2020 by avi_t (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted December 21, 2021 Share Posted December 21, 2021 We want to tell you that the mentioned issue is caused because you have replace '{products}' with products data instead of Product HTML. 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