| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
subcategory list on home | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
subcategory list on home
I would like to list different subcategory groups on the home page. I know customer/categories.tpl lists the top level categories. customer/main/subcategories.tpl displays a particular subcategory, but that is coming from a page (the home page for example) that sends along a category id.
So on the home page (which hasn't received a particular category id, and I would want numerous subcategory group listings anyway) I'm not sure how to list different subcategory groups. Anyone know how to do this...or do I have to hard code in the subcategory links into the home page? Thanks! |
|||||||
#2
|
|||||||
|
|||||||
Hi,
Have you ever figured this out? Did you progress on the matter? Please advise. Thanks. |
|||||||
#3
|
|||||||||
|
|||||||||
Quote:
Hey Melcom, Coincidence that we both happened across this topic on the same day. I'm also looking for a solution to this... If anyone has any ideas, please post it here!
__________________
joshf | X-Cart Portfolio Currently: http://nightowlpapergoods.com | http://pinkolive.com |
|||||||||
#4
|
|||||||
|
|||||||
Hey guys,
I am also looking for the same solution. Take a look at categories of http://www.savatrader.com/shop/customer/home.php. If this is possible, then the solution we are looking for should be simple. I will search through the forum and let everyone know if I find something useful. Thanks. |
|||||||
#5
|
|||||||
|
|||||||
Hi,
I have found a code by boomer which was for the kind of thing done on http://www.savatrader.com/shop/customer/home.php. I have modified the code to make it suitable for us. Hope it helps everyone. I have tested it on x-cart version: 3.4.12 Edit skin1/customer/categories.tpl: Code:
Edit include/categories.php: Comment out the line (just add a # in front of it): Code:
and add the following underneath it: Code:
Then go down to the bottom of the file where the "Assign Smarty variables" comment is, underneath it add: Code:
|
|||||||
#6
|
|||||||||
|
|||||||||
Works over here.... Thanks for the post.
__________________
joshf | X-Cart Portfolio Currently: http://nightowlpapergoods.com | http://pinkolive.com |
|||||||||
#7
|
|||||||
|
|||||||
I had finally gone the route of hard coding the links...I'll try out this code.
Thanks for the post 2getInk! |
|||||||
#8
|
|||||||
|
|||||||
Glad to help.
|
|||||||
#9
|
|||||||||
|
|||||||||
HELP !!!
This coding works a treat but it displays all sub categories within a main categories ... how do i change the coding so it only shows the first level sub categories. I know it has something to do with checking to see if the categories name has a second / in it, but dont know php that way to sort it
__________________
Darren Kierman Carlisle Glass (http://www.carlisleglass.co.uk/) ... running X-Cart Gold 4.4.5 [unix] |
|||||||||
#10
|
|||||||||
|
|||||||||
Code:
This will get the sub_category_name as well. template code for the 1st tier from root: Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|