Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2011
    Posts
    52
    Plugin Contributions
    0

    Default products and subcategories in a cat

    I am setting up my first zen cart site. I have main categories and sub categories. I would like my sub category items to display on the main page of the category and if someone wants to filter further they can click on the sub category links.

    I have this working by putting all items in the main category and linking them to the sub cats. The only problem is I get an error message telling me that this is fine if it's temporary but is in general not allowed.

    My question is what are the consequences of doing this?

    Thanks in advance.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: products and subcategories in a cat

    It will mess up the way in which products are linked to categories and category counts are calculated in ways that are difficult to predict. You may wish to take a look at the cetegory_tree class which will give an indication of the complexity and detail of the tree walk needed to perform some core product management tasks.
    Kuroi Web Design and Development | Twitter

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

  3. #3
    Join Date
    Mar 2011
    Posts
    52
    Plugin Contributions
    0

    Default Re: products and subcategories in a cat

    Is there a better way to achieve this?

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: products and subcategories in a cat

    You could adapt the new products box. It can be set to not apply a time limit, and therefore show all products, and the text could be changed to remove the references to "new".

    I believe too that the contents of the box will be automatically filtered to match any category selected.
    Kuroi Web Design and Development | Twitter

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

  5. #5
    Join Date
    Mar 2011
    Posts
    52
    Plugin Contributions
    0

    Default Re: products and subcategories in a cat

    thanks I will look in that direction

 

 

Similar Threads

  1. v151 Show all products in a category and subcategories
    By val-ent in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Sep 2013, 10:32 AM
  2. products AND categories (subcategories)
    By poosk in forum Customization from the Admin
    Replies: 7
    Last Post: 1 Dec 2007, 06:52 PM
  3. New/Featured Products and Subcategories
    By fried83 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Apr 2007, 02:37 AM
  4. Master Cat's on main page, ONLY sub cat's on specific cat pages
    By wtashby in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 25 Jun 2006, 07:24 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