![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() I noticed when setting up the sales price views that three things are happening:
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. |
#2
|
||||
|
||||
![]() Hi
This is the code that handles that issue: 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 } ?>
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |