Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2006
    Location
    Northwest Connecticut
    Posts
    87
    Plugin Contributions
    0

    Default Skip Page showing sub categories, go straight to first sub category

    Is there any way, a switch in admin, an add on or using the override template system to set up zen cart to go straight to the first subcategory rather than show the page which has all the subcategories on it? This is sort of like what happens when there is just one product in a category, you can go right to that product page.

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Skip Page showing sub categories, go straight to first sub category

    hmmmm might be easier to add the sub categories to a favourites menu, which you can add to your shortcut bar :-) That way you can access all sub categories right from any page from your browsers drop down menu.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Skip Page showing sub categories, go straight to first sub category

    You can set the home page to open with a particular subcategory, if that is what you are wanting.

    If you want a global "go to the first product-holding subcat when a top cat is clicked" function, that will take some real coding.

  4. #4
    Join Date
    Dec 2006
    Location
    Northwest Connecticut
    Posts
    87
    Plugin Contributions
    0

    Default Re: Skip Page showing sub categories, go straight to first sub category

    Thank you both for replies..... but don't know exactly what to do re: favorites or coding, I thought it would help, it always helps to send you a link to the site I am working on ---- http://peterfasano.com/zen


    So, what I need to be able to do is maybe what Glenn identifies as requiring a bit of coding --- when someone clicks on Fabrics or Wallcoverings, the two categories that have sub categories, you should go straight to the first subcategory page , skipping the page that shows the different subcategories, going straight to the page that shows the products within the sub category. As Seen In is also a category but it does not have sub categories.... so it doesn't have this requirement.

    Glenn, if the only or best way to do this is coding, is it extensive? Is it something you can help me work out or are available to do for hire?

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Skip Page showing sub categories, go straight to first sub category

    That would require some SQL queries to find the right subcat, and I don't have much experience with MySQL. I could figure it out if I took the time, but others here could do it better.

    You could hard-code it, but that would not be flexible and I don't think you want to worry about recoding if a category changes.

    If you do want to hard-code, for this very simple application you could just point the header link to the desired subcat instead of the named topcat. I haven't checked to see what you are using for the header nav, but if it is the ez-pages bar this would be easy :)
    Last edited by gjh42; 8 May 2009 at 05:10 PM.

  6. #6
    Join Date
    Dec 2006
    Location
    Northwest Connecticut
    Posts
    87
    Plugin Contributions
    0

    Default Re: Skip Page showing sub categories, go straight to first sub category

    Glenn, Hard coding would be OK in this case because thre are not going to be additional sub catecories added, I know famous last words, but this is not that type of dynamic situation and if there were sub categories added, then the code could be adjusted....

    If the code would be something like

    If Fabrics,

    goto Prints (i.e. the internal link to go directly to that page...


    This would work! Do you know where this code should be placed?

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Skip Page showing sub categories, go straight to first sub category

    OK, you are using ez-pages links for the top nav, so just change the internal link path from

    index.php?main_page=index&cPath=1

    to

    index.php?main_page=index&cPath=1_9

 

 

Similar Threads

  1. Replies: 1
    Last Post: 1 May 2013, 10:20 PM
  2. Show sub-sub categories underneath sub-categories on the category page?
    By tomrice in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jun 2009, 03:05 AM
  3. Skip One-Category Sub-Categories?
    By dmfelder in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 2 Mar 2009, 05:40 AM
  4. Can you skip sub category page?
    By hzp in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 6 Aug 2008, 11:40 AM
  5. skip category main page with first sub-category
    By roboto in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Aug 2007, 02:28 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR