| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
x5 Navigating category tree | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
x5 Navigating category tree
Anyone have any pointers on navigating the category tree on a page in x5
I've created a module to put little icons for the subcats at the top of category pages. I want them to display the same top level cats on all sub levels though. IE CARS TOP LEVEL CATEGORY PAGE (icons at top for Ford, GM, Ferrari, Fiat etc) --- FORD SUB - CATEGORY PAGE (icons at top for Ford, GM, Ferrari, Fiat etc) ------ FORD PICKUPS SUB - CATEGORY PAGE (icons at top for Ford, GM, Ferrari, Fiat etc)
__________________
Core version: 5.5.xx |
|||||||
#2
|
|||||||||
|
|||||||||
Re: x5 Navigating category tree
Hi @xgarb!
Do I understand you correctly that all you need is to put top category icons in the sidebar: http://awesomescreenshot.com/0414nqho6a In this case, you can change it by altering the skins/default/en/categories/list/body.tpl template. Here is an article how you can apply template changes: http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes Here is an example of how to work with image widget: http://kb.x-cart.com/display/XDD/Using+images+widget
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#3
|
|||||||
|
|||||||
Re: x5 Navigating category tree
Hi,
No.. I wanted every sub-category page to have the top level categories for that area at the top. I worked out one way of getting the top level category (moving up the tree). It might not be the best way but it works... Code:
__________________
Core version: 5.5.xx |
|||||||
#4
|
|||||||||
|
|||||||||
Re: x5 Navigating category tree
Actually, this block always displays top level categories. Even on sub-categories pages, e.g.
http://demostore.x-cart.com/toys As you can see we are in Toys directory, which has sub-categories, but top level categories are displayed in the top-left corner. If I still did not grasp a problem, please let me know how would you need to display this block on the http://demostore.x-cart.com/toys page? Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#5
|
|||||||
|
|||||||
Re: x5 Navigating category tree
HI,
I don't think I explained it very clearly. It's second level cats so in the example I gave... CARS TOP LEVEL CATEGORY PAGE (icons at top for Ford, GM, Ferrari, Fiat etc) --- FORD SUB - CATEGORY PAGE (icons at top for Ford, GM, Ferrari, Fiat etc) ------ FORD PICKUPS SUB - CATEGORY PAGE (icons at top for Ford, GM, Ferrari, Fiat etc) CARS are one of the top level categories on the site. Once you are in the CARS category I want the icons for the car brands to show at the top of all the pages below so if you are in the Compact Fords subcat you still see all the car brands at the top. I've found that in my code return $result[0]; works quite nicely as I've got more parent categories now (for structural reasons) and I can change the 0 to a 1 or a 2 depending how far up the tree I want to go.
__________________
Core version: 5.5.xx |
|||||||
#6
|
|||||||||
|
|||||||||
Re: x5 Navigating category tree
@xgarb, to be honest, I still feel that it works this way already in X-Cart 5.
Have a look at http://demostore.x-cart.com/toys/cube-goodies We are in 2nd level category, but it still displays root categories in the top left corner. Should it be different?
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#7
|
|||||||
|
|||||||
Re: x5 Navigating category tree
Imagine you are here: http://demostore.x-cart.com/toys/rc-toys
We want to see Cube Goodies, RC Toys, Science Toys as icons above the products. Also if the three categories had more subcats then the same three icons would show. It's a quick way to navigate where you are without having to jump to the Toys main category. I've worked out how to do this and some other tricks with the navigation so I wouldn't worry about it too much.
__________________
Core version: 5.5.xx |
|||||||
#8
|
|||||||||
|
|||||||||
Re: x5 Navigating category tree
Quote:
OK, glad to hear you have worked out that. Thanks for clarification, though!
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|