eugenDUS Posted November 28, 2015 Share Posted November 28, 2015 Hey all, i have a problem with manually sended order confirmation email (order_conf). The most of variables are not filled. The automatically sended order confirmation email looks good, there are all variables replaced with order information. I figured out that the manual email send is in orderhistory.php (sendemail function). I think the problem is here $module->extra_mail_vars. extra_mail_vars are not filled. But how can i fix this? Link to comment Share on other sites More sharing options...
chrisranjana.com Posted November 29, 2015 Share Posted November 29, 2015 if ($result['module_name']) { $module = Module::getInstanceByName($result['module_name']); if (Validate::isLoadedObject($module) && isset($module->extra_mail_vars) && is_array($module->extra_mail_vars)) { $data = array_merge($data, $module->extra_mail_vars); } } Can you find for which $result['module_name'] extra_mail_vars are empty ? Link to comment Share on other sites More sharing options...
eugenDUS Posted November 29, 2015 Author Share Posted November 29, 2015 There is no module loaded, this status is my own status. But $template_vars is empty too. if ($template_vars) { $data = array_merge($data, $template_vars); } Link to comment Share on other sites More sharing options...
lototo Posted February 6, 2020 Share Posted February 6, 2020 Get same problem in some presta 1.7.6 site. $module->extra_mail_vars works on the one site and dont work on another. Have no idea where to start to resolve that 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