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

Get an attributes text in CatalogInventory -> model -> Stock -> item.php
 
dieTaste
Jr. Member
 
Total Posts:  6
Joined:  2008-04-29
Germany, Bayern
 

Hello,

did anyone know how i get the text of an attribute in the CatalogInventory model stock item.php betten than the following?

This works:

$product Mage::getModel('catalog/product')->load($this->getProduct()->getData('entity_id'));
$text =  $product->getResource()->getAttribute('delivery_status_out_of_stock')->getFrontend()->getValue($product);

This dosent work:

$text $this->getProduct()->getResource()->getAttribute('delivery_status_out_of_stock')->getFrontend()->getValue($this->getProduct());

Thanks in advance!

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