View Single Post
  #1  
Old September 24th, 2011, 10:09 AM
erin erin is offline
 
Join Date: Sep 2011
Posts: 65
Default How To Display Discounted Sale Price In Related Products - Custom View

I would like to know how to include the discounted sale price in my Related Products Custom View to show in my posts please.

Here is the code I've entered into my Related Products Custom View but it's not displaying the sale price of some products which have gone on sale at the merchants store.

https://www.erinsecolist.com/?p=4162&preview=true

<div class="pl">
[product.each]
<div class="t2 col1">
<div class="bdr">
<h2><a href= "[product.url]" title="[product.name]" target="_blank" rel="nofollow">[product.name]</a></h2>
<div class="lc">
<div class="thmb"><a href="[product.url]" title="[product.name]" target="_blank" rel="nofollow">[product.image tag='1']</a></div>
</div>
<div class="rc">
<p class="desc">[product.description]</p>
<div class="prc_btns">
<table>
<tr>
<td class="prc" >
[product.currency mode='sign'][product.price]
<?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 } ?>
</td>
<td class="btns">
<a href="[product.url direct='0']" title="Buy [product.name]" target="_blank" rel="nofollow"class="dfbutton dfgreen dflarge">Buy</a>
</td>
</tr>
</table>
</div>
</div>
<div class="clearingdiv"> </div>
</div>
</div>
[product.end]
<div class="clearingdiv"> </div>
</div>