Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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>
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is the sale price the sale price? ayorofrance Questions 8 May 1st, 2012 11:24 PM
Sale Price meperez Questions 4 May 10th, 2011 08:26 PM
How to add 'sale items' custom view as a category page? lbuilta59 Questions 5 January 25th, 2011 08:04 PM
Sale price view pagination doesn't work badm00n Problems 4 January 16th, 2011 01:36 PM


All times are GMT -5. The time now is 01:09 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.