Magento – Why isn’t the attribute text showing on the front end

attributesmagento-1.9

Well I have this code here and I am adding it to my list.phtmlfile to try and get the attribute text for each product to display:

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

This code works with any attribute that has a Catalog Input Type for Store Owner value of dropdown however it does not display for attributes with the value of Text Field.

Any idea why this might be happening?

I have the setting Used in Product Listing enabled for both attributes.

Thanks

Best Answer

Make sure Visible on Product View Page on Front-end and Used in Product Listing options under properties of this attribute are set to Yes.