I’m using Magento 1.0 and following these threads:
(Thread A) http://www.magentocommerce.com/boards/viewthread/1610/ (for product listing: list.phtml)
(Thread B) http://www.magentocommerce.com/boards/viewthread/4482 (for product viewing: view.phtml)
I added the following to app/design/frontend/default/default/template/catalog/product/view.phtml and
And with the above, I’ve also modified the product_list block in catalog.xml with this: (Code Block B)
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
but I don’t see the custom attribute ‘part_no’ appear on both pages.
Am I missing some edits that are required in another file?
As per Thread A, I manage to show the ‘part_no’ custom attribute in list.phtml and view.phtml by using
and making the same changes in (Code Block B) to catalog.xml.
So what am I doing wrong that I can’t make $_product->getAttributeText(’part_no’) work for me in list.phtml and view.phtml?
According to Thread A, what I used to get it working isn’t something that is supposed to be for newer releases, and since 1.0 is the latest version at this time, I’ll like to change my ‘fix’ to use code that is meant for newer releases.