Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Idea or Suggestion Subcategory products link to Parent Categories

    Hey,

    I am after the same sort of thing that Amazon.com and other similar sites have where when you select a category, all products under that category are shown and then are narrowed down when the user selects a subcategory.

    EG if I had a category called MP3 players, it would show all of the products (1gb, 2gb, 4gb, 8gb, 16gb, etc) even though all of these products are in subcategories. I know you can do this by using the link function but I will be adding literally thousands of products and will have category trees up to 5 generations!

    A quick fix for this would be awesome as it is the final thing I need before putting up my website!!

    Thanks!

  2. #2
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Idea or Suggestion Subcategories products in Parent Categories

    Hey,

    I know you can do this by linking, but as I will be adding many many products and will have category trees up to 5 generations deep, I am wondering if there is any easy fix to having all of the products even in the deepest subcategories show up in the main categories? As linking every single product to the multiple parent categories will be a nightmare.

    This means that if I had a category called MP3 players, and the different sized MP3 players were in different subcategory folders (eg 1gb, 2gb, 4gb, 8gb, etc) they would all show up under the main category 'MP3 players' and the subcategories would be used as a sort of filter.

    I am more than happy to change the hard coding and install mods if anyone has a solution to this. Please help as I really really need this!

    Thanks,
    Nick.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Subcategories products in Parent Categories

    Firstly, you can't add products to a category, if there are sub-categories in that category.

    I would caution against going too deep with the sub-categories trees - your customers will be clicking link after link after link before they got to any meaningful product info. Research shows that more than three clicks to get to a screen that allows a visitor to peform some useful action (like ADD TO CART) usually results in people abandoning a site.

    On my sites I try to have a main category, then only go one sub-category deep. Very seldom do I go any deeper on sub-category trees. And some of my sites have upwards of 10000 products with lots of variety.
    20 years a Zencart User

  4. #4
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: Subcategories products in Parent Categories

    Yeah I didnt want to have too deeper subcategories, which is why I am after something like this so the subcategories are just for looking more specifically. I believe it is vital for my site and am really thankful for any help I can get...

    BTW, thanks for that info on the clicking business... ill make sure i stick to it where it is needed.

  5. #5

    Default Re: Subcategory products link to Parent Categories

    I would also love to know how to do this

    I haven't had much luck with the linking myself, because you can't like products to a category that has sub-categories

  6. #6
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    red flag Re: Subcategory products link to Parent Categories

    I have found this for OsCommerce: addons.oscommerce.com/info/5351

    If anyone knows much about adapting OsCommerce mods for Zen Cart it would be muchly appreciated

    Please help!!!
    Thanks,
    Nick.

  7. #7
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    red flag Re: Subcategories products in Parent Categories

    I have found this for OsCommerce: addons.oscommerce.com/info/5351

    If anyone knows much about adapting OsCommerce mods for Zen Cart it would be muchly appreciated

    Please help!!!
    Thanks,
    Nick.

  8. #8
    Join Date
    May 2006
    Posts
    80
    Plugin Contributions
    0

    Default Re: Subcategories products in Parent Categories

    Im looking for the answer to this one. Did you ever find anything?

  9. #9
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: Subcategories products in Parent Categories

    No not yet... I have been continually trying but there is something I am doing wrong...

    These are my guesses of the files to replace the script in:

    Step 1:
    includes/modules/pages/index/header_php.php

    Step 2:
    includes/index_filters/default_filter.php

    Step 3 & 4:
    includes/modules/product_listing.php


    Some of these have multiple matches for parts of the code but if you look at the "// *text here*" tags you will see what they are referenced to and can match it up...

    Let me know how u get on.

    Cheers,
    Nick.

  10. #10
    Join Date
    Aug 2006
    Posts
    133
    Plugin Contributions
    0

    Default Re: Subcategories products in Parent Categories

    Oh, how I do hope to figure out how to do this properly. Would a Zen Cart elder please share the specific file(s) that need editing? It sure would be helpful as a jumping-off point. TIA!

    FWIW, my current workaround has been using MySQL and phpMyAdmin to place products within categories having subcategories.

    Supposedly, Zen Cart does not like this but I'm unsure why. Regardless, it is possible as I've mentioned. To do it efficiently, what you need to develop is a comprehensive non-Zen database (or spreadsheet with multiple worksheets in my case*) that allows you to quickly export your table values fashioned in the proper MySQL code for easy import into phpMyAdmin.

    And I've already written a script to easily fix my products_to_categories table by removing the offending category assignments should I suspect my site is suffering in performance due to this very issue of products listed in categories already having subcategories.

    *I have three spreadsheets, one each for products, categories and and manufacturers. I do not do attributes or options. I build whatever I need into each product with custom product table fields. Overboard, yes, but for a reason: portability. Anyway, each worksheet within each spreadsheet is a table with a column for each field. Then in between each column is a column for the MySQl code. This makes it real easy to highlight the worksheet, copy it, paste it into a text editor, and then remove the tabs created between cells. (I recommend JujuEdit from jujusoft.com as it can handle huge files quickly.) Then I copy and paste that into a SQL box on my phpMyAdmin page. Obviously, this is not elegant as it requires a few extra steps, but I believe the effort worth it as I continue to have my doubts about Zen Cart and can quickly move on elsewhere.

    BTW, why is Zen Cart not developed for what clearly is desired by much of its user base? Unless the argument is performance-based, there is no reason that this could not be an admin panel on/off switch for there is plenty of research pointing out that when a site is sophisticated and comprehensive in its organization, drill down does not bother a customer in the least.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Displaying All Products in All Subcategories of a Parent Category
    By rge in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 29 Aug 2009, 08:51 AM
  2. Question about Categories set up - how can I show products from subcats in parent?
    By touchclothing in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Aug 2009, 06:25 PM
  3. Replies: 2
    Last Post: 30 Jul 2008, 08:35 AM
  4. how to click on parent category, show all products in subcategories
    By meocanada in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Mar 2008, 08:19 AM
  5. List subcategories products when clicking Parent
    By milksamsa in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 5 Mar 2008, 01:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg