Thursday 12 September 2013

show custom attribute in checkout process and order email


you have to add the code in these pages:


/pedal/app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml

/pedal/app/design/frontend/base/default/template/checkout/onepage/review/item.phtml


/pedal/app/design/frontend/base/default/template/checkout/cart/item/default.phtml

/pedal/app/design/frontend/base/default/template/sales/order/items/renderer/default.phtml


 For Items table (for new order emails):
/app/design/frontend/default/default/template/email/order/items/order/default.phtml

For Items table (for shipment emails):
/app/design/frontend/default/default/template/email/order/items/shipment/default.phtml

For Items table (for invoice emails):
/app/design/frontend/base/default/template/email/order/items/invoice/default.phtml

For Items table (for creditmemo emails):
/app/design/frontend/base/default/template/email/order/items/creditmemo/default.phtml



-----------code---------------------------------------

<?php $_product= Mage::getSingleton('catalog/product')->load($_item->getProductId()) ?>
<?php echo $_product->getResource()->getAttribute('info')->getFrontend()->getValue($_product); ?>

1 comment:

  1. Good work shweta agarwal

    I would also like to mention the following path for Order line items - Email is: app/design/frontend/base/default/template/email/order/items/order/default.phtml .

    Also try Magento Custom Order Attributes extension by FME, which lets you add multiple type of fields to the checkout page. https://www.fmeextensions.com/magento-additional-checkout-attributes-fields.html

    ReplyDelete