| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Display Sub Categories in 2 or 3 column + Pic | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am wondering does anyone done this yet or know how to do this ?..
I want to display my sub-Categories in 2 or 3 column with catagory picture infront of each one name .. i am wondering how do it this ? example : Cat-Pic 1 : Cat name 1 | Cat-Pic 2 : Cat Name 2 | Cat-pic 2 : Cat name 2 Cat-Pic 4 : Cat name 4 | Cat-Pic 5 : Cat Name 5 | Cat-pic 6 : Cat name 6 Thank in advance for help |
|||||||
#2
|
|||||||
|
|||||||
![]() Try to use the following code in the template where the $subcategories array is defined:
Code:
Also, I'd recommend you to move your category images to the file system. You can perform it under admin area on the "Images location" page.
__________________
Sincerely yours, Max Vydrin |
|||||||
#3
|
|||||||
|
|||||||
![]() i found " subcategories.tpl " but it is look like not the place where $subcategories is define .. and it is a lot files to look into .. BUT .. if we assignt this to file where " $subcategories " is define will it effect the menu system ? i saw it use " $subcategories " too.
|
|||||||
#4
|
|||||||
|
|||||||
![]() This code should work on the categories pages, products listing and product details page.
On these pages you can use this code in any templates which are included to show the appropriate content.
__________________
Sincerely yours, Max Vydrin |
|||||||
#5
|
|||||||
|
|||||||
![]() can i know which file(s) exacly that i should modify and add the code to it ?
|
|||||||
#6
|
|||||||
|
|||||||
![]() Quote:
Generally the subcategories list on the category details page. Therefore you should edit the "skin1/customer/main/subcategories.tpl" template as you previously did it. If you have any problem with code implementing I'd recommend you to contact your Support team in your Help Desk account.
__________________
Sincerely yours, Max Vydrin |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Quote:
"skin1/customer/main/subcategories.tpl" Find in the file the following code and replace at that what you wrote above. PHP Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|