Forums / All Other Contributions/Addons / Display all categories+products on one page

Display all categories+products on one page

Views: 30,673

Results 41 to 60 of 105
10 Feb 2009, 1:29 PM
#41
netchaos avatar

netchaos

New Zenner

Join Date:
Feb 2009
Posts:
20
Plugin Contributions:
0

Display all categories+products on one page

I think I was not accurate in my earlier posting, Actually the sub sub category products are getting listed in my test server (not in my real server, but I might have done something wrong while installing the mod) but the real problem I am having is with the order in which they are displayed.
For example I am having three sub categories say SubCat 1, SubCat 2 and SubCat 3. SubCat2 and Subcat 3 have few products and in SubCat 1 sub category, there is a sub sub category called SubsubCat 1. So when somebody clicks the main category name the SubCat 2 and SubCat3 products are displayed first and below that the SubsubCat 1 category products are listed. How can I display all the products according to their Sub Category order, ie first display all the products in the first Sub Category along with its child sub categories and then display the next Sub Category products and its child sub category products if there is any, and like wise for all the Sub Categories ?
I have no idea whether this sorting is done by the module but any pointers are really appreciated.
Thank You

10 Feb 2009, 2:52 PM
#42
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

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

Re: Display all categories+products on one page

As far as my experience goes - the sorting is not done by the module, but by the Sort Order numbers that you give your products.
You simply need to set up the products' Sort Orders with this module in mind - so, for example, the products in SubCat1 would have sort orders 0-900, SubSubCat1 would have 1000-1900, then SubCat2 could have 2000-2900... etc. So when the parent category is viewed, the products' Sort Orders will match the ordering of the categories.

10 Feb 2009, 5:08 PM
#43
netchaos avatar

netchaos

New Zenner

Join Date:
Feb 2009
Posts:
20
Plugin Contributions:
0

Re: Display all categories+products on one page

thanks bodyjewelrystores, it makes sense. I will try it .

11 Feb 2009, 10:09 PM
#44
netchaos avatar

netchaos

New Zenner

Join Date:
Feb 2009
Posts:
20
Plugin Contributions:
0

Re: Display all categories+products on one page

I am really confused. In my test server the module displays all the products from the subcategory and its child categories, but in my production server when somebody clicks the main category, only products from the subcategories are getting listed. My test server is a fresh zencart install, so I think, in the production server, some settings in the admin panel is preventing the Subsub category products from displaying.
Any thoughts ?

12 Feb 2009, 8:18 PM
#45
netchaos avatar

netchaos

New Zenner

Join Date:
Feb 2009
Posts:
20
Plugin Contributions:
0

Re: Display all categories+products on one page

Guys any idea regarding my issue ?

13 Feb 2009, 7:11 PM
#46
netchaos avatar

netchaos

New Zenner

Join Date:
Feb 2009
Posts:
20
Plugin Contributions:
0

Re: Display all categories+products on one page

I think I found the reason behind the strange behaviour of the Mod on my production server. My production server is still using MYSQL 4.1.21 and I think the mod is not compatible with it. I got one more reason to fight with my client. :wacko:

13 Feb 2009, 8:43 PM
#47
bodyjewelrystores avatar

bodyjewelrystores

Zen Follower

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

Re: Display all categories+products on one page

netchaos:

I think I found the reason behind the strange behaviour of the Mod on my production server. My production server is still using MYSQL 4.1.21 and I think the mod is not compatible with it. I got one more reason to fight with my client. :wacko:

My production server runs on 4.1.20 and the mod works...

Could you analyze/optimize/repair the products and categories tables and see if this helps? (after a proper backup, of course)

I think yellow1912's code constructs the product lists for category trees based on sessions - so perhaps you could also try optimizing/repairing and then clearing the sessions, db_cache and whos_online tables (if nobody's currently shopping on your website), and also your cache folder for good measure... backup applies here too.

Finally I'd check if there's any error in the category structure - for instance, a category that contains both products and subcategories (technically not allowed in Zencart, but may sometimes happen with certain add-ons, e.g. Easy Populate, and could possibly cause unpredictable behavior such as this).

Maybe you could post/pm your site address so I could take a look at it - can't promise much though...

13 Feb 2009, 9:08 PM
#48
netchaos avatar

netchaos

New Zenner

Join Date:
Feb 2009
Posts:
20
Plugin Contributions:
0

Re: Display all categories+products on one page

Hi bodyjewelrystores, thanks for the reply.

To verify the MYSQL version issue , I tested the code in wamp with mysql 4.1.21 and it didint work. Yes it was displaying products but not from the subcatagories child catagories and so I thought that this is a MYSQL version problem. But after reading that you are using 4.1.20 I am puzzled . I'll try to do the things that you mentioned (I dont have a full acces to the server but I'll try to do it) and will let you know.

P.S. As per the web admin they dont have products and catagories together inside a single category.

28 May 2009, 3:23 PM
#49
janellez avatar

janellez

Zen Follower

Join Date:
Sep 2007
Posts:
128
Plugin Contributions:
0

Re: Display all categories+products on one page

milkyway:

Glenn, Thank you for your reply.. I'm so happy that you are willing to help us :clap:

I think your solutions might not directly applicable in yellow's contributions, since yellow use simple category tree module to show all products (even under sub-cats) in main category page, while you solutions I think applied in product listing page?

Anyhow I'm not sure whether your solutions can be applied in yellow's contrib, I tried to look your code but I do not know how to apply in simple category tree mod.

By the way here I attach the mod from yellow so you can check it out if you dont have it yet.

Thanks so much Glenn!

I just installed this mod from the post above (all_subcats_products.zip) and I'm not seeing any difference in my site. Is there more config I have to do in Admin?

I really need to simply show all products in a category on the category page. I don't need to sort them or have them separated by sub cat. Right now, all one gets is the links to the many sub cats that we have and customers just want to see all products in a category at once.

Any help would be appreciated.

26 Aug 2009, 9:48 AM
#50
truechapin avatar

truechapin

New Zenner

Join Date:
Jun 2009
Posts:
6
Plugin Contributions:
0

Re: Display all categories+products on one page

Has there been any updates to this? I have tried every option on over a dozen threads...

1 Sep 2009, 10:02 AM
#51
bruhnf avatar

bruhnf

New Zenner

Join Date:
Jan 2009
Location:
Baltimore, MD
Posts:
21
Plugin Contributions:
0

Re: Display all categories+products on one page

Wondering if this "All products in a category, show in one page, order by sub-categories" can be done in the admin? I'm told that many things can be done in the admin without custom coding.

Here is what I am trying to accomplish.

I have 4 top categories on my site. ie: Men's, Women's, Boys, Girls. Within each of these categories, I have sub-categories. Shirts, Pants, Shoes, etc. When someone is on my main page and then clicks the Womens top category, for instance, I would like for ZC to display all items within all of the Womens sub-categories until they click on one of the sub-categories.

So, can this be accomplished somewhere in the admin? You don't have to tell me how to do it, just let me know if is possible and I will try to figure it out.

Thanks
Bruhn

1 Sep 2009, 3:10 PM
#52
gjh42 avatar

gjh42

Black Belt

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

Re: Display all categories+products on one page

No, it can't be done in admin. It will require custom PHP & MySQL coding to create a page with different content than the existing pages.

1 Sep 2009, 3:14 PM
#53
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Display all categories+products on one page

@bruhnf: This is exactly what the module all sub cats products listing is for :). And no, it is impossible via the current admin.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

1 Sep 2009, 4:45 PM
#54
bruhnf avatar

bruhnf

New Zenner

Join Date:
Jan 2009
Location:
Baltimore, MD
Posts:
21
Plugin Contributions:
0

Re: Display all categories+products on one page

gjh42: Thanks for the response. Thought it might require custom stuff from what I've been reading. Not sure I'm ready for that but I'm working on it. I've been reading a lot of your posts and have learned a great deal from you. Thanks so much for your contributions. Also, visited your store. Pretty cool stuff!!!! :-)

yellow1912: I thought that is what your mod was supposed to do. Thanks for verifying that. I've downloaded the mod from earlier in the thread. Tried it once with no luck but I probably messed something up. As I said, still learning all this. I'm going to try it again when I get some time.

Thanks so much for taking the time to respond.

Much appreciated.
Bruhn

1 Sep 2009, 5:20 PM
#55
newbie76 avatar

newbie76

Zen Follower

Join Date:
Aug 2009
Posts:
100
Plugin Contributions:
0

Re: Display all categories+products on one page

milkyway:

Glenn, Thank you for your reply.. I'm so happy that you are willing to help us :clap:

I think your solutions might not directly applicable in yellow's contributions, since yellow use simple category tree module to show all products (even under sub-cats) in main category page, while you solutions I think applied in product listing page?

Anyhow I'm not sure whether your solutions can be applied in yellow's contrib, I tried to look your code but I do not know how to apply in simple category tree mod.

By the way here I attach the mod from yellow so you can check it out if you dont have it yet.

Thanks so much Glenn!

That done pretty much exactly what I wanted, except my filter by manufacturer has disappeared from the listings page, anyone got any ideas?

20 Sep 2009, 11:48 AM
#56
swapnshare avatar

swapnshare

New Zenner

Join Date:
Sep 2009
Posts:
1
Plugin Contributions:
0

Re: Display all categories+products on one page

This mod sounds great - but I am not able to get it working. The install instructions were easy enough but when I click on my main category I still do not see any products listed.

I am using zen cart 1.3.8a. Could it be that this mod is not compatible? Or does this mod rely on some configuration from the Admin console?

Any help would be greatly appreciated.

7 Oct 2009, 2:12 PM
#57
pafruu avatar

pafruu

New Zenner

Join Date:
Oct 2009
Location:
Moncton, NB
Posts:
2
Plugin Contributions:
0

Re: Display all categories+products on one page

I am experiencing the same problem, is there something that I am missing, should I ad to the code? I fairly new at zenning, please help

10 Oct 2009, 9:49 PM
#58
litepockets avatar

litepockets

Zen Follower

Join Date:
Apr 2008
Location:
Covington, Washington, United States
Posts:
206
Plugin Contributions:
0

Re: Display all categories+products on one page

@ bodyjewelrystores:

Thank you for this. I added this to to the mod and it did the trick.. kind of. From what I can tell the products that I want to display in the parent categories page (with the subs above), all have to be linked to the parent category. IE:
If I have "shoes" as the parent cat for instance, and "womens" and "mens" as subcats.. then all of the products in those two subcats have to be linked to the shoes category. If I have it this way, than it works for my store, but will not work if the products simply reside in the subcats without being linked... Only problem is that if I do this with the products linked, I have both subcategories AND products in the parent category, which is a zen-cart no-no.. or is it ok?

bodyjewelrystores:

I've managed to modify the add-on to do this on my store.

See the attached zip for the patches and instructions to make this work. Please note that this is a very "hackish" mod by me - I have not tried this on a fresh install, and cannot guarantee that it will work for you. So be sure to make backups of all relevant files!

This modification requires code changes as well as replacing a file, so be sure to follow the instructions in readme.txt.

11 Oct 2009, 12:40 AM
#59
gjh42 avatar

gjh42

Black Belt

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

Re: Display all categories+products on one page

If you have to link products directly to the parent cat to make the mod work, you are doing something wrong. I don't know the code involved, so can't advise on what the problem might be.

11 Oct 2009, 2:04 AM
#60
litepockets avatar

litepockets

Zen Follower

Join Date:
Apr 2008
Location:
Covington, Washington, United States
Posts:
206
Plugin Contributions:
0

Re: Display all categories+products on one page

Hi Glenn,

I went through the code and instructions for both mods. Looks like I had some code missing in the default_filter.php file. Fixed it :) However, not sure why, but where the "Filter Results By:" should be it says "TEXT_NONE" .. not sure if I'm missing a define or something..? Please see screen shot attached. Has firebug shown for the element in question.. any ideas? . Also, quick note, it appears in some categories, but not others...