megwoo
6/24/2015 - 5:25 AM

Magento Add Custom Attribute Fields to Detail Page

// normal text field attribute
<?php echo $_helper->productAttribute($_product, $_product->getCustomAttributeName(), 'custom_attribute_name') ?> 

example: <?php echo $_helper->productAttribute($_product, $_product->getLearnMore(), 'learn_more') ?>


// drop down attribute
<?php $attribute = $_product->getResource()->getAttribute('product_size');
	if ($attribute) {
		echo $attribute->getFrontend()->getValue($_product);
	} ?>