Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I add extra attributes to display on the checkout cart page? 
 
Ross
Guru
 
Avatar
Total Posts:  336
Joined:  2007-08-31
Scarborough, North Yorkshire, UK
 

I have edited the template/checkout/cart.phtml page to display the SKU as well as the Thumbnail and Product Description.

<strong>Product&nbsp;Code:</strong<?php echo $_item->getSku() ?>
...which works fine!

However, if I want to add a custom attribute it does not work:

<strong>My Attribute:</strong<?php echo $_item->getMyAttribute() ?>

It would be *great* if that ‘just worked’!

There is some helpful information on this wiki page:
How to add attributes to product grid in category
...but I don’t think there is the option of using XML to addAttributeToSelect

On the Search Page I added to Mage/CatalogSearch/Block/Result.php(line 100) to add in attributes:

->addAttributeToSelect('my_attribute')

...but with the Checkout Cart page, it is not so obvious where or how to ->addAttributeToSelect(). 
I’m looking at: Mage/Checkout/Block/Cart.php

Ideas anyone?

 
Magento Community Magento Community
Magento Community
Magento Community
 
JoeNmass
Member
 
Avatar
Total Posts:  50
Joined:  2008-03-07
 

Did you ever figure this out. I would like to know also.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top