php - Magento getAttribute is not working in list.phtml? -


This is the magnetro code that I used to get the attribute.

  echo $ _product-> GetResource () - & gt; GetAttribute ('attrcode') - & gt; GetFrontend () - & gt; GetValue ($ _products);   

This code is working fine in view.phtml , this code returns the code attribute.

When I List.phtml return this code empty .

Please help me where I make a mistake.

  & lt; Php echo $ _product- & gt; GetAttributeText ('attrcode') ;? & Gt;   

Please use that page on the list page and check the attribute settings in 'Use in Product Listing': "Yes") < / Html>

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -