/ Published in: PHP

not fully tested maybe must be like specialprice in this excample
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $product= Mage::getModel('catalog/product')->load(product_id); $price = $product->getPrice(); $webprice = $product->getwebprice(); $specialprice = ($_product->getSpecialPrice()); if($specialprice==$price) {?> <?php } else { ?> <div class="regular-price"> <span>Regular Price:</span> </div> <div class="special-price"> <span>Web Special:</span> </div> <?php } ?>
URL: http://xhtmlandcsshelp.blogspot.com/2010/10/how-to-get-special-price-in-magento.html
Comments
