Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Sale price causes misalignment of products (/showthread.php?t=11477)

suzebutch January 26th, 2015 06:25 AM

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

Eric January 26th, 2015 09:17 AM

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

suzebutch January 27th, 2015 05:46 AM

Excellent - that worked beautifully. Thanks.


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.