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.


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

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

|improve this answer|||||
  • already figure that out – Qaisar Satti Nov 6 '15 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. – Rakesh Jesadiya Nov 6 '15 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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