1

i want to add brand name with product name in invoice email. when i check the email/order/invoice/item.phtml.i see this .

<?php echo $this->getItemHtml($_item) ?>

how to change to get my required data. any help will be appreciated.

1 Answer 1

1

First copy

app\design\frontend\base\default\template\email\order\items\invoice.phtml to
app\design\frontend\{{your package}}\{{your theme}}\template\email\order\items\invoice.phtml

Now you can place your brand with $_item->getBrand() after $_item->getName() in line no. 31 for magento 1.9.2.1.

if your brand attribute code is brand then $_item->getBrand() value getting.Otherwise you have to set your custom attribute name.

2
  • already figure that out Commented Nov 6, 2015 at 12:13
  • you have to dump $_item array and got for brand value is available or not in that array.If getting brand value then you can use it. Commented Nov 6, 2015 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.