Community Forums

[vQmod] Hide Empty Categories

Put any free vQmod scripts here.
vQmod details

[vQmod] Hide Empty Categories

Postby uksitebuilder » Tue Aug 09, 2011 4:15 pm

Simple mod that hides empty categories on front-end

Tested on 1.5.x

uksb_hide_empty_categories.xml
(2.78 KiB) Downloaded 865 times


This mod is currently not compatible with the following mods

subcat_images
remove category counts


Working on a solution
User avatar
uksitebuilder
 
Posts: 5602
Joined: Thu Jun 09, 2011 3:37 pm
Location: United Kindgom

Re: [vQmod] Hide Empty Categories

Postby onlinephilately » Mon Aug 29, 2011 5:31 pm

Hi,

Super idea.

I have Accordion Menu installed. Any chance to use it for that mod?
onlinephilately
 
Posts: 40
Joined: Wed Jan 26, 2011 7:14 pm

Re: [vQmod] Hide Empty Categories

Postby uksitebuilder » Tue Aug 30, 2011 7:29 am

Not sure what or how the accordion menu is.

However, if you look at the code in the vqmod xml, it should be quite self explanatory on what you need to do.

It basically uses conditional statements to see if category count is greater than zero.
User avatar
uksitebuilder
 
Posts: 5602
Joined: Thu Jun 09, 2011 3:37 pm
Location: United Kindgom

Re: [vQmod] Hide Empty Categories

Postby aurevilly » Tue Oct 25, 2011 1:55 am

Thanks for this contribution.
User avatar
aurevilly
 
Posts: 67
Joined: Wed Sep 28, 2011 8:32 pm
Location: Sherbrooke, Canada

Re: [vQmod] Hide Empty Categories

Postby graded » Tue Mar 13, 2012 7:51 pm

uksitebuilder wrote:Simple mod that hides empty categories on front-end

Tested on 1.5.x

uksb_hide_empty_categories.xml


This mod is currently not compatible with the following mods

subcat_images
remove category counts


Working on a solution



Any chanse that you made it work with remove category counts? :)

Great VQmod!
graded
 
Posts: 44
Joined: Sat Feb 25, 2012 10:14 pm

Re: [vQmod] Hide Empty Categories

Postby aaron1988 » Tue Mar 27, 2012 11:00 pm

Same any update on a sub_images and remove category count solution please? for 1.5.1.3

Thanks
Aaron
aaron1988
 
Posts: 256
Joined: Thu Jan 27, 2011 2:03 am

Re: [vQmod] Hide Empty Categories

Postby tdaubs » Mon Apr 16, 2012 7:29 pm

+1 for update to work with hidden category counts.
User avatar
tdaubs
 
Posts: 259
Joined: Thu Apr 07, 2011 8:51 pm
Location: Southern California

Re: [vQmod] Hide Empty Categories

Postby mammax » Fri Aug 24, 2012 3:16 am

I removed the count by removing

Code: Select all
. ' (' . $product_total . ')'


from three locations of the mod.

Looks like its still working okay.


And thanks uksitebuilder, great mod. One less job for the client.
mammax
 
Posts: 1
Joined: Tue Mar 27, 2012 4:59 am

Re: [vQmod] Hide Empty Categories

Postby 247shop » Fri Jan 25, 2013 9:53 am

I am using 1.5.4 and the mod hides some of my categories that do have products in it. They are all parent categories where only the sub categories have products in them. I have another mod that shows all the product in the parent that is in the sub categories, but even after removing that the problem persists.

Is this maybe incompatible with 1.5.4?
247shop
 
Posts: 1
Joined: Fri Jan 25, 2013 9:47 am

Re: [vQmod] Hide Empty Categories

Postby mytindahan » Thu Mar 28, 2013 11:30 pm

works fine on my 1.5.5.1
mytindahan
 
Posts: 36
Joined: Mon Sep 27, 2010 5:28 am


Return to vQmods

Who is online

Users browsing this forum: burley, cgchris99, creativesousa, OC2PS and 9 guests

Hosted by Arvixe Web Hosting