Jump to content

E-mails variables in mailalerts: how to add a manufacturer


neymarinho

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...