custom magento attributes on frontend of site

If you have created custom magento attributes , then you might need to show them on frontend . So, here is how to call them to your frontend : If custom attribute which you have created is textarea or textfield then add the following code < ?php echo $_product->getAttributeName() ?> for example If I created custom attribute with attribute code published_date then your code will be < ?php echo $_product->getPublishedDate() ?> If custom attribute which you have created is a multiselect or a dropdown then add the following code < ?php echo $_product->getAttributeText('published_date') ?> If you have done all this and still the value is not displaying, then edit the attribute and make sure, you have switched on the option, SHOW ON PRODUCT LISTING.

Site Search

Contact Us

 
 
 
Parent Technology Inc.
1535 Rosalind Rd Se
East Grand Rapids, MI 49506, USA
 
 

This email address is being protected from spambots. You need JavaScript enabled to view it.