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 January 26th, 2015, 06:25 AM
suzebutch suzebutch is offline
 
Join Date: Jan 2015
Posts: 4
Default Sale price causes misalignment of products

Store ID: 47076
Website URL: http://colorshopper.com
URL to page in question: http://colorshopper.com/store and http://colorshopper.com/store/category/blue/ and others

Hi,
I have added sale prices to various pages, but this has caused the display of products to go out of alignment. Can you suggest how to fix this?
Thanks
Suzi
  #2  
Old January 26th, 2015, 09:17 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Try changing your sales code from this:

HTML 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 } ?>
To this:

HTML 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>
      <br />
      Now: <span style="font-weight: bold; color:red;">[product.currency mode='sign'][product.saleprice]</span>
    </small>
  </div>
<?php } else { ?>
  <div class="prc">
    <small>
      <span style="">[product.currency mode='sign'][product.price]</span>
      <br />
      <span style="font-weight: bold; color:red;"> &nbsp; </span>
    </small>
  </div>    
<?php } ?>
    
Hopefully that helps,

Eric
  #3  
Old January 27th, 2015, 05:46 AM
suzebutch suzebutch is offline
 
Join Date: Jan 2015
Posts: 4
Default

Excellent - that worked beautifully. Thanks.
 


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
Price is Not Showing at Sale Price Product List emiclat Problems 1 October 25th, 2012 10:13 PM
How to show reg price and sale price on search results? brightsway Questions 2 June 28th, 2012 12:58 PM
Price/sale price layout abbeydriving Problems 4 March 26th, 2012 06:59 PM
Products with no price when set to Sale Price (low to High) josemarr77 Problems 2 December 15th, 2011 10:31 AM
How To Display Discounted Sale Price In Related Products - Custom View erin Questions 3 September 25th, 2011 08:54 AM


All times are GMT -5. The time now is 12:53 PM.


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