| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to Show All Categories on Home Page? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() My client has a very small store (11 items currently) with 4 main categories. He would like to show all items in their respective categories on the home page - not just having links to the categories on the left menu.
I could do this by adding them all to the Featured Products list, but that defeats the purpose of featured products and it doesn't display their associated categories. What I would like to do is find some way to display the orange dialog box (that typically surrounds the products in a category) for each category and listing their products inside. Example: Orange Box with Category#1 as title Contents displays 3 items Orange Box with Category#2 as title Contents displays 2 items Orange Box with Category#3 as title Contents displays 3 items You get the picture. Has anyone been able to do anything like this? Any help would be appreciated! |
|||||||
#2
|
|||||||
|
|||||||
![]() Okay, here goes...
First create a new php script called cat1.php Code:
Then copy this and amend the last assign statement for each category so create a copy called cat2.php and change the last bit to prodcat2 etc... Then add the following into home.php for each of the scripts/categories. Code:
Then in home_main.tpl replace: Code:
with Code:
keep adding the prodcat's until all your categories are included. Then in welcome.tpl replace: Code:
Code:
This should do it but will probably require some tweaking. ![]()
__________________
ex x-cart guru ![]() |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks, that looks like it should help
![]() |
|||||||
|
|||
X-Cart forums © 2001-2020
|