Magento Core: Display "Features" attribute under Details on Product View page

Send Snippet To: Save this snippet to Code Collector Pro -- view all tamburra's snippets
language: Other
license: Other

Code for Snippet:

                
---------------
Open:
---------------
 
/app/design/frontend/base/default/template/catalog/product/view/description.phtml
 
 
---------------
Find :
---------------
 
<?php $_description = $this->getProduct()->getDescription(); ?>
<?php if ($_description): ?>
    <h2><?php echo $this->__('Details') ?></h2>
    <div class="std">
        <?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), $_description, 'description') ?>
    </div>
<?php endif; ?>
 
 
---------------
Add Below:
---------------
 
<style type="text/css">
#features_pv ul{
	list-style-image:url('http://www.wirelesssounds.net/shop/media/images/features-checkmark.png');
	margin-left: 22px;
	padding: 0px;
}
 
#features_pv ul ul{
	list-style-image:url('http://www.wirelesssounds.net/shop/media/images/blank.png');
	list-style-type: disc;
	margin-left: 30px;
	padding: 0px;
}
</style>
 
<?php $_features = $this->getProduct()->features_pv ?>
<?php if ($_features): ?>
    <div class="std" id="features_pv">
		<h2><?php echo $this->__('Features') ?></h2>
		<?php echo $this->getProduct()->features_pv ?>
	</div>
<?php endif; ?>
comments powered by Disqus

Info

Tags: Core CE 1.6

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 719
Date Added: 2012-01-24 06:09:31
Last Modified: 0000-00-00 00:00:00

Web Analytics