| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Conditonal statement for market price | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello, I recently upgraded to 4.1.7. On product.tpl if the market price is $0.00 it shows up, but I want it hidden. I don't want to completely get ride of the market price. I just want it conditional, if the price is 0 don't show market price. Can someone tell me know to do this?
Also, when I was using version 4.0.12 I used the conditional statement below (I think that's the one) for the discount percentage, but it no longer works. Any ideas on how it make the percentage only show up when the discount is greater than 24? {if $discount gt 24}, {$lng.lbl_save_price} {$discount}%{/if} If you guys need me to post the code for product.tpl I will. Thank you for your help.
__________________
JediSam04 Version 4.1.11 X-AOM 4.1.10 PHP 5.2.6 MySQL 5.0.51a-community Hosting by EWDHosting DSEFU, Feed Manager, Custom mods |
|||||||
#2
|
|||||||
|
|||||||
![]() Well, I managed to solve my problem. For those of you interested, here's what I did.
On Product.tpl to make the "Market Price" disappear if it is less than "Our Price" Find this: Code:
Change it to: Code:
Now to make the discount disappear if the percentage is less than 10. In products_t.tpl find: Code:
Change the 0 in {if $discount gt 0} to 10 or whatever percentage you want. I hope some of you will find this useful. ![]()
__________________
JediSam04 Version 4.1.11 X-AOM 4.1.10 PHP 5.2.6 MySQL 5.0.51a-community Hosting by EWDHosting DSEFU, Feed Manager, Custom mods |
|||||||
|
|||
X-Cart forums © 2001-2020
|