View Single Post
  #3  
Old October 10th, 2012, 10:49 AM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

If you want to display sales prices (if one is provided by merchant) replace this line in your product list module

Code:
<div class="prc">[product.currency mode="sign"][product.price]</div>
with this

Code:
    <?php if ($product->saleprice > 0 &&  $product->saleprice < $product->price) { ?>
  <div class="prc">
    <small>
      Was: <span style="text-decoration: line-through;">[product.currency mode='sign'][product.price]</span>
      Now: <span style="font-weight: bold; color:red;">[product.currency mode='sign'][product.saleprice]</span>
    </small>
  </div>
<?php } else { ?>
  <div class="prc">
    <small>
      [product.currency mode='sign'][product.price]
    </small>
  </div>    
<?php } ?>