Magento Forum

   
Retrieving custom attribute value on a product
 
st1j1s1
Jr. Member
 
Total Posts:  11
Joined:  2008-05-05
 

Hi,

After having tried to solve the following problem for quite some time, I turn to this forum for help:

I have created a required product attribute (dropdown) which is not visible on the frontend nor in searches.

For a given product, how can I retrieve the chosen value of that attribute from within the method “saveOrder” in
the file app/code/core/Mage/Checkout/Model/Type/Onepage.php ??

I have tried literally dozens of calls on product, item, attribute, frontend, backend, ... but to no avail…

Any useful suggestion merits a free meal next time you’re in Hanoi...wink

Cheers,
Steen

 
Magento Community Magento Community
Magento Community
Magento Community
 
Appmerce
Guru
 
Avatar
Total Posts:  376
Joined:  2008-05-13
Amsterdam, The Netherlands
 

<?php echo $_product->getData('custom'); ?>

Change ‘custom’ to what you need.

 
Magento Community Magento Community
Magento Community
Magento Community
 
salbertson
Jr. Member
 
Total Posts:  27
Joined:  2008-05-04
 

This doesn’t work in email template files, any advice?

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