Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Problems
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
Old March 12th, 2011, 12:59 PM
laura90059 laura90059 is offline
Join Date: Feb 2011
Posts: 23
Default Sale Price Not Showing Correctly

I noticed when setting up the sales price views that three things are happening:
  1. It displays a correct price but sales price is $0
  2. It displays the same price as the sales price
  3. It displays both correctly

I read through the forum and found a post where you mentioned that it is probably because the merchant set up the fields incorrectly. Is there anyway to write code in a if statement - like if salesprice=0 and if salesprice=price, not to display the item? This way it would only display the correct amount.
Old March 12th, 2011, 04:36 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902


This is the code that handles that issue:

HTML Code:
<?php if ($product->saleprice > 0 &&  $product->saleprice < $product->price) { ?>
  <div class="prc">
      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>
<?php } else { ?>
  <div class="prc">
      [product.currency mode='sign'][product.price]
<?php } ?>

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
Add filter for sale price in the Merchant Discovery Tool ayorofrance Feature Requests 1 March 31st, 2012 11:16 AM
Sale price not showing chloegeorge Questions 3 February 2nd, 2011 10:25 AM
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 12:59 PM.

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