igor3dviz Posted October 1, 2015 Share Posted October 1, 2015 (edited) 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 October 1, 2015 by igor3dviz (see edit history) 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