Created
September 3, 2014 15:41
-
-
Save rossmc/d3650bbc178ba818761b to your computer and use it in GitHub Desktop.
Add a Magento Attribute to a Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $_nutritional_info = $this->getProduct()->getNutritional_info(); ?> | |
<?php if ($_nutritional_info): ?> | |
<div class="std"> | |
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), $_nutritional_info, 'usage') ?> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment