Skip to content

Instantly share code, notes, and snippets.

@rossmc
Created September 3, 2014 15:41
Show Gist options
  • Save rossmc/d3650bbc178ba818761b to your computer and use it in GitHub Desktop.
Save rossmc/d3650bbc178ba818761b to your computer and use it in GitHub Desktop.
Add a Magento Attribute to a Template
<?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