Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

DONE! Adapt code from ../product/view/attributes.phtml to ../product/compare/list.phtml
 
tiitrae
Jr. Member
 
Total Posts:  4
Joined:  2012-10-14
 

I had an original line of code in attributes.phtml
line:46

<td class="data"><?php echo $_helper->productAttribute($_product$_data['value']$_data['code']?></td>

I have replaced it with a code that re-formats the values if they are used in ‘slider’

<?php if (($numberOptions Mage::getModel('mana_filters/filter2')->load($_data['code']'code')) && $numberOptions->getDisplay() == 'slider') : ?>
    
<td class="data"><?php  echo Mage::helper('manapro_filtersuperslider')->formatNumber($_product->getData($_data['code']), $numberOptions?></td>
<?php else : ?>
    
<td class="data"><?php echo $_helper->productAttribute($_product$_data['value']$_data['code']?></td>
<?php endif; ?>

Can anyone help to adapt the code to product compare page’s list?

Edit
Solution Here

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top