| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
If product has wholesale prices show this, else.. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello there. I think that i want i simple but i don't know why it doesn't work. I am trying to do that change on product.tpl
The code i try to use is this: {if $product.forsale ne "B"} <td colspan="3"> {else} <td colspan="3" class="product-subtitle"> {/if} So with other words, i want if the product has wholesale prices to use on some place the code "<td colspan="3">" and if not, to use this "<td colspan="3" class="product-subtitle">". The problem is that it always use the first, no matter if it has wholeslae prices or not. Any idea? Thank you guys
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql) Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server Modules : X-Offer & X-Aom & One page checkout Product tabs & Product downloads & many more |
|||||||
#2
|
|||||||
|
|||||||
![]() hmm, noone? i thought that this i asked was easy:/
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql) Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server Modules : X-Offer & X-Aom & One page checkout Product tabs & Product downloads & many more |
|||||||
#3
|
|||||||||
|
|||||||||
![]() "B" means bundle as far as I know so that code will always return first condition if your product is not bundled
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||
|
|||||||
![]() hm.. So what code should i use if it has wholesale prices? is there any code i can use?
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql) Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server Modules : X-Offer & X-Aom & One page checkout Product tabs & Product downloads & many more |
|||||||
#5
|
|||||||
|
|||||||
![]() hm, i think i found it. I used this at last:
{if $product_wholesale ne ''} <td colspan="3" class="product-subtitle-wholesale"> {else} <td colspan="3" class="product-subtitle"> {/if} This seems to work fine, you think i will make me any troubles?
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql) Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server Modules : X-Offer & X-Aom & One page checkout Product tabs & Product downloads & many more |
|||||||
#6
|
|||||||||
|
|||||||||
![]() No, no trouble. It will just assign first or second class to the table cell
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|