| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to use If condition | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() HI,
Just have an idea to create a new thread with use of IF condition examples. Can somebody help me to use If condition to hide a category thumbnails, but only if category name is called for example: LED diodes? Second question for IF. How to change product template layout for a specific category. For example, IF category is called LED diodes I want to use one column product grid. Else I want to use the default one set up in general settings. Thank you for your help, and pls, add yours if conditions for interesting cases you have. Tom
__________________
Tom X-CART 4.4.1 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Quote:
How are you categories displayed? In a list or multiple columns? Quote:
This is currently not possible within xc, however there's a mod that can help you achieve this. I explain about this here: http://forum.x-cart.com/showthread.php?t=57369
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#3
|
|||||||
|
|||||||
![]() HI I use multiple columns (3) and for products I use 4columns.
Other if statement I want to use is for home page featured products. I want to rename it to New Products, but only at home page. For all other pages I wan to leave it as Featured Products. Any idea?
__________________
Tom X-CART 4.4.1 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
Open up subcategories_t.tpl (located in /skin/common_files/customer/main) Find the following code (Around line ![]() Code:
and replace it with the following: Code:
Quote:
If it's only for the homepage then yes... The featured products section is driven via customer/main/featured.tpl If you make a copy of the file and call it something like featured_home.tpl and make the custom changes you want here. Then amend customer/main/welcome.tpl (Which is the site's frontpage) to include featured_home.tpl instead of featured.tpl. HTH
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
|
#5
|
|||||||
|
|||||||
![]() Hi HTH,
thanks the first one works only for subcategories, not for root categories. Can you kick me ones more with code for ROOT Categories? Thank you for Featured products help. That works Perfectly. Is any public list of variables used in xcart? Sorry for bothering you so much. Tom
__________________
Tom X-CART 4.4.1 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
Quote:
Shafiq
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#7
|
|||||||
|
|||||||
![]() My Apologize,
what I need is to hide all subcategories images for root category called "LED Diodes". What's your script doing is not showing subcategory image for subcategory called "LED Diodes" only. Tom
__________________
Tom X-CART 4.4.1 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|