Jump to content

Product attributes value (email template)


Recommended Posts

Hi,

 

How can I add product attributes value without attributes name in  email template?

 

$product_var_tpl = array(
'reference' => $product['reference'],
'image_url' => $image_url,
'name' => $product['name'].(isset($product['attributes']) ? ' - '.$product['attributes'] : ''),
'unit_price' => Tools::displayPrice($product_price, $this->context->currency, false),
'price' => Tools::displayPrice($product_price * $product['quantity'], $this->context->currency, false),
'quantity' => $product['quantity'],
'customization' => array()
);

to

$product_var_tpl = array(
'reference' => $product['reference'],
'image_url' => $image_url,
'name' => $product['name'],
'model' => (attribute value),
'unit_price' => Tools::displayPrice($product_price, $this->context->currency, false),
'price' => Tools::displayPrice($product_price * $product['quantity'], $this->context->currency, false),
'quantity' => $product['quantity'],
'customization' => array()
);

Thanks!

Edited by igor3dviz (see edit history)
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...