neymarinho Posted November 9, 2013 Share Posted November 9, 2013 Hello, I'm currently trying to add the manufacturer variable in mailalerts but I'm stuck. Every time I add: $manufacturer = new Manufacturer($product['id_manufacturer'], $id_lang); The website doesn't load afterwards. What should I add so that, I could use the {manufacturer} in my mails? Thank's in advance, Link to comment Share on other sites More sharing options...
vekia Posted November 9, 2013 Share Posted November 9, 2013 Every time I add: $manufacturer = new Manufacturer($product['id_manufacturer'], $id_lang); where you adding this? Link to comment Share on other sites More sharing options...
neymarinho Posted November 10, 2013 Author Share Posted November 10, 2013 In modules/mailalerts/mailalerts.php Link to comment Share on other sites More sharing options...
vekia Posted November 10, 2013 Share Posted November 10, 2013 but where exactly? in what function? Link to comment Share on other sites More sharing options...
neymarinho Posted November 11, 2013 Author Share Posted November 11, 2013 Line 275 After this: $id_lang = (int)Context::getContext()->language->id; $currency = $params['currency']; $configuration = Configuration::getMultiple(array('PS_SHOP_EMAIL', 'PS_MAIL_METHOD', 'PS_MAIL_SERVER', 'PS_MAIL_USER', 'PS_MAIL_PASSWD', 'PS_SHOP_NAME')); $order = $params['order']; $customer = $params['customer']; $delivery = new Address((int)$order->id_address_delivery); $invoice = new Address((int)$order->id_address_invoice); $order_date_text = Tools::displayDate($order->date_add, (int)$id_lang); $carrier = new Carrier((int)$order->id_carrier); $message = $order->getFirstMessage(); Link to comment Share on other sites More sharing options...
vekia Posted November 11, 2013 Share Posted November 11, 2013 hello i can't find this code in my mailalerts module. what module version you use? 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