Forums / Addon Templates / Expanded Category List by Anant Bhatia - question

Expanded Category List by Anant Bhatia - question

Views: 4,757

Results 1 to 12 of 12
2 Jul 2009, 11:56 PM
#1
comicart avatar

comicart

New Zenner

Join Date:
Apr 2005
Location:
Atlanta, GA
Posts:
9
Plugin Contributions:
0

Expanded Category List by Anant Bhatia - question

Hey folks! I was reading about the Expanded Category List shown here:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=392

It seems like many of you use it.

The "readme.txt" file says he will be uploading another sidebox with includes only categories and sub-categories (no products).
Does anybody know where that is or if anything like that exists? I would like to show both categories and sub-categories in my sidebox.

Terry

Using:
ZC 1.3.8 - fresh install
with PureOrange Template

17 Jul 2009, 12:25 AM
#2
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Re: Expanded Category List by Anant Bhatia - question

Hi Terry,

Just came across your question - hope this is still relevant. You can make a simple change to this contribution, which will remove the products and keep only the categories and sub-categories.

Edit the file includes/classes/category_list.php

Find line #82 - it should look like this:

$this->build_products($category_id, $category_link,$level);

Simply comment it out by adding a double-slash at the beginning:

// $this->build_products($category_id, $category_link,$level);

Save, upload and test - the sidebox should be product-free now.
Hope this helps

8 Mar 2011, 6:49 PM
#3
lexxymark avatar

lexxymark

New Zenner

Join Date:
Mar 2008
Posts:
9
Plugin Contributions:
0

Re: Expanded Category List by Anant Bhatia - question

I really like this mod! however, I'm wondering how to get it to NOT show the categories that are turned off. It seems to show everything. Right now I don't want to show my holiday cat, but I will in Dec.

Thanks!

8 Mar 2011, 7:22 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Expanded Category List by Anant Bhatia - question

Do you want to show the products? If not, there are other mods that will work more in line with ZC settings, like fragfutter's Uncollapsed Categories Tree (available from his site, or bundled with Categories Dressing where it will generate a correct <ul> list).

16 Aug 2011, 5:07 AM
#5
annnika avatar

annnika

New Zenner

Join Date:
Mar 2010
Location:
Royston, UK
Posts:
14
Plugin Contributions:
0

Re: Expanded Category List by Anant Bhatia - question

Hi gjh42,

Might you be able to answer my question wrt the Expanded Category List module?! Desperately need guidance, this is for a client so will make a contribution for a little support :-)

1.) A problem: no products are displayed, only cats & sub-cats! Any known issues/adminsettings you are aware of that might be causing this?

2.) And further - Ultimately I wish to display the list elsewhere within zencart content pages and select the categories/sub-categories of which products to list. Could you advice please:

a) which code sniplet can i grab to display the tree elsewhere in other files (other than side box), or do I need to create a whole new set of files/pages or as a non-sidebox module?
b) is it possible to tell the module to list sub-categories and products under certain sub-cat only, say category_id '160'?

Thank you kindly!

Annika

ps. I am sorry to hear the contributor Clyde Jones has suddenly died :-(

16 Aug 2011, 7:27 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Expanded Category List by Anant Bhatia - question

Oh my! So sorry to hear about Clyde.

I am not deeply familiar with the code for this mod, and haven't even looked at it in a year or two. Anything is possible, but I would have to study it quite a bit to advise at this point.

16 Aug 2011, 9:41 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Expanded Category List by Anant Bhatia - question

I have a completely re-written version of this mod done for a clients site, but the documentation isn't complete. But PM me an email address and I'll send it over as is.

It does display the products (though I've included a switch to turn that off as I don't much like it).

It's not designed to be used outside of a sidebox as the way the code is built for sideboxes is different to other locations, but I'll give that some thought.

It is possible to set a root for the top of the category tree displayed that is different to the root for the whole site.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

16 Jan 2012, 7:50 PM
#8
wookie avatar

wookie

New Zenner

Join Date:
Aug 2011
Posts:
17
Plugin Contributions:
0

Re: Expanded Category List by Anant Bhatia - question

Hello i need help please

I install and all fine.
I have only this problems:

I have disabled some category in my admin panel ( i dont use) but still show online inside category listing.... how can i solve it ?

when i have the normal category of zen cart dont show the disabled category....

thanks

17 Jan 2012, 10:09 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Expanded Category List by Anant Bhatia - question

You would have to compare and merge the coding for display filters between this mod and the stock sidebox. If you're not up for that, you need to use another expanded categories mod that does work correctly for this.

18 Jun 2012, 11:13 AM
#10
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Expanded Category List by Anant Bhatia - question

kuroi:

I have a completely re-written version of this mod done for a clients site, but the documentation isn't complete. But PM me an email address and I'll send it over as is.

It does display the products (though I've included a switch to turn that off as I don't much like it).

It's not designed to be used outside of a sidebox as the way the code is built for sideboxes is different to other locations, but I'll give that some thought.

It is possible to set a root for the top of the category tree displayed that is different to the root for the whole site.

Is this offer still open? I'm using the original mod but it shows inactive products - did you manage to fix this?
Thanks in advance.

17 Oct 2012, 12:52 AM
#11
deepfrydaniel avatar

deepfrydaniel

New Zenner

Join Date:
May 2007
Posts:
29
Plugin Contributions:
0

Re: Expanded Category List by Anant Bhatia - question

Any chance someone has modified this to work with Zen 1.5?

17 Oct 2012, 1:06 AM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Expanded Category List by Anant Bhatia - question

You can get expanded categories with Categories Dressing, which works fine with v1.5. There may be other expanded categories mods that also work.