Search code examples
magentomagento-1.4magento-1.5

How Can I Echo A Managed Attribute With An Object In Magento?


I am Again here with my learning problem in magento. I created a field in for my products Catalog/Attributes/Manage Attributes. Now I want to display this Field with the product Information. When I use This Code

$_product = new Mage_Catalog_Model_Product();
$_product->load($product->getId());
echo "<pre>"; print_r($_product->getDelivery());exit;

I am able to print other values like name by writing this :

 echo "<pre>"; print_r($_product->getName());exit;

Can anyone tell me how can I print those attributes that i have added manually through Admin interface..


Solution

  • you can try and see what's inside

    echo "<pre>"; print_r($_product->getData());exit;