How to send attribute values in invoice mail in magento-1.9.1.1
-
03-10-2020 - |
Question
I have developed one website on magento-1.9.1.1. I need to add the weight attribute values along with order information in invoice email.
Solution
you can simply add information here.
app/design/frontend/[package name]/[your theme]/template/email/order/items/invoice/default.phtml
You can get the product item weight like this:
<?php echo $_item->getOrderItem()->getWeight(); ?>
OTHER TIPS
Magento,does not save weight of item at Sales invoice model.You did not find any field at sales_flat_invoice_item
table.
Magento save an order item weight at sales items table, so you need to call Mage_Sales_Order_Item
Object of that sales invoice ite,
$orderItem = $_item->getOrderItem();
$orderItem->getWeight(); // get weight
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange