1

Magento ver. 1.8.1.0, Ultimo theme

I'm trying to get product`s attribute according this solution:

Product Attribute on Products Grid/List View (manufacturer)

My settings:

enter image description here

I run following code:

<?php echo $_product->getAttributeText('depths'); ?>

Using xDebug I see following:

$this->getResource()

Resource instantiating well. I have this object

        ->getAttribute($attributeCode)

enter image description here

I got my attribute successfully

            ->getSource()

Before return I have following:

enter image description here

And on step:

                ->getOptionText($this->getData($attributeCode));

When we are getting $this->getData($attributeCode) result is NULL and ->getOptionText also return NULL

I don't know when this attribute should appear in $this (read as $product) ->getData() should have this value. If _data array have this value why don't I call just on list page $_product->getData('my_attr')?

Could you help me to find the issue?

p.s.

Mage::getModel('catalog/product')->load($_product->getId())->getDepths()

returns right value

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.