Hi, ive been stuck on this for ages now ive managed to put image links on for my product categories but i cant get it to work for the specials, new products and all products links. is there a cpath for these categories?
thanks
and the site is moley.comlu.com
Those are not categories, and there is no cPath for them. Instead, they have URLs with main_page=products_all or whatever.
I have added the ability to do image substitution for those links, but will have to check on whether it is in the v2.7.3 standard files, or just a tip posted in this thread.
Last edited by gjh42; 21 Jan 2012 at 05:07 PM.
Hello,
We have a lot of categories and would it be possible to show just some of it on the main page?
For example, we have 10 main categories and each one has at least 10 subcategories.
Instead of showing all of them, we would like to show all main categories but only the first five of the subcategories like below.
Main Cat 1
Subcat Cat 1
Subcat Cat 2
Subcat Cat 3
Subcat Cat 4
Subcat Cat 5
View All
and so on.
And when a visitor clicks on a subcategory, only the categories in that main category will show or be active on the sidebox.
Sorry if it sounds too confusing, been working on it all day and its quite late now.
Regards
Limiting the visible subcats for any one top cat is easy:
#categories li li+li+li+li+li+li {display: none;}
for hiding sixth and following subcats.
But showing the hidden subcats on selection would require a code change, as the classes that indicate this status are on the <a> elements and out of the selector ancestor stream.
There is a standard option in the defines to show all top cats when none are selected, then show only the whole active tree or the active branches when one is selected.
Last edited by gjh42; 1 Feb 2012 at 03:55 AM.
Hello,
Decided not to show any subcats on the main page but cant get any of the top categories either.
The closest setting to what we need is 5/0/2 but this doesnt show the top categories. I tried the other settings but it doesnt work or maybe my combination is wrong.
I sent you the link to the site to see our current settings.
Thanks
Try 2|0|2 for all top cats when none is selected, active tree only when one is selected.
If none of these gets the exact setup you want, a custom case can be written for the define (there are various examples earlier in this thread).
Hello,
Tried 2/0/2 but it shows top and sub categories on main page. It also shows the top category on the active category which we would like to hide so I think setting 5 is the closest to this.
Just need top categories on main page.
Thanks
You have chcategories installed, which will show top and subs on the homepage. You need the base Categories Dressing package for your situation. Case 2 will show top cat as well as subcats when in the active tree, so you would need a slight modification. Add a new case 6 in /includes/functions/extra_functions/categories_dressing_functions.php (function cat_active_level_manage($path) { ) like this:If you want to show all sub-subcats of the current top cat, you would need chcategories as well as a different custom case.PHP Code:
case 6://active only, without top (all tops when no cat selected)
if($cPath_top != $path_top and $cPath_top != 0) $skip_cat = 1;
if($cPath_top == $path_top and $cat_depth == 0) $skip_cat = 1;
break;
Hi,
Thanks for taking the time to reply.
Im sorry if I wasnt very clear to what we need but we are after the sub-subcats as well.
Below is the list of what we are trying to achieve.
* Top Cats on main page only.
* When a Top Cat is selected, all subcats and sub-subcats are shown but without the Top Cat.
Best Regards
Bookmarks