Return to Snippet

Revision: 33976
at October 15, 2010 09:30 by TioSolid


Initial Code
/*
<!-- in your modules config.xml -->
<config>
    <global>
        <sales>
            <quote>
                <item>
                    <product_attributes>
                        <your_attribute/>
                    </product_attributes>
                </item>
            </quote>
        </sales>
    </global>
</config> 
*/

/* to read it inside the code (as far as $item = the item in question */
echo $item->getData('your_attribute');

/* If you are reading it from an observer or from the quote / cart object */
echo $item->getProduct()->getData('your_attribute');

Initial URL
http://www.magentocommerce.com/boards/viewthread/43580/

Initial Description
How to retrieve product attributes outisde the product page in Magento

Initial Title
Retrieve product attributes outside product page

Initial Tags
magento

Initial Language
PHP