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
  #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>
  #2  
Old September 24th, 2011, 12:02 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

It appears that none of those items are on sale. That's why there is no sale price to display.

Eric
  #3  
Old September 24th, 2011, 08:42 PM
erin erin is offline
 
Join Date: Sep 2011
Posts: 65
Default

Hi Eric,

The alpaca cushions were on sale but didn't show as being marked down on my post. Now they are back to their original price. Was I supposed to update my products and settings or do these prices change automatically? Is the following code I wrote above correct...if I would like to show items marked down in my Related Products Field? I saw your other thread. I will take a look at that too.

Thanks,
Erin
  #4  
Old September 25th, 2011, 08:54 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Yes, your code looks fine. But those products don't to appear to be on sale at the moment... at least not in the data feed the merchant provided.

Eric
 


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 09:50 AM.


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