Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default "See all links" option?

    I've been searching on the forum for this to no avail. Might anyone know how to code in 'See all' links on the home page for the Categories in the center column?
    Thank you,
    autoace

  2. #2
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: "See all links" option?

    Are you using a custom template? As far as I know, Zen Cart shows categories on the left hand side, with an "All Products" link by default. I don't recall there being an option for categories in the middle of the homepage.

  3. #3
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: "See all links" option?

    Quote Originally Posted by jackie.taferner View Post
    Are you using a custom template? As far as I know, Zen Cart shows categories on the left hand side, with an "All Products" link by default. I don't recall there being an option for categories in the middle of the homepage.
    You can get the categories to show in the middle thru controls in the admin, its all about the settings you use.
    Thank you,
    autoace

  4. #4
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: "See all links" option?

    Ok, please let me know what settings you used so I can help you figure out how to add "See All" to it.

  5. #5
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: "See all links" option?

    Ok, thanks. In Configuration > Layout Settings > 'Categories - Always Show on Main Page' -- You just set it to 1 instead of 0.
    Thank you,
    autoace

  6. #6
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: "See all links" option?

    Oh, I see what you're saying now! I was picturing the category list as it appears in sideboxes, not the product listing

    The categories index template is located here: /includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php

    You can add a link to "All Products" like so:
    Code:
    <a class="category-links" href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo CATEGORIES_BOX_HEADING_PRODUCTS_ALL; ?></a>
    But, that will change ALL categories pages (not just the main page). If you want homepage only, you can wrap it in an IF statement like so:

    Code:
    <?php if ($this_is_home_page) { ?>
    <a class="category-links" href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo CATEGORIES_BOX_HEADING_PRODUCTS_ALL; ?></a>
    <?php } ?>

  7. #7
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: "See all links" option?

    Thank you, but that is not exactly what I'm trying to do. I have my Top level categories in the center column and they all have at least 5 more sub-cats under them. What I'd like to do is create a bulleted list of the next sub cats under the parent cat and then have a link under the bulleted list that reads 'See all'. Any ideas?
    Thank you,
    autoace

  8. #8
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: "See all links" option?

    Well that's going to be much more involved. I know of a module to do so on the categories sidebox, but not in the actual categories page.

    First, you'll need to split out the category index template so you can make changes on the homepage and not on the regular categories page (unless you want it on both), then you'll have to modify the category tree and code.

    Use this thread as a reference, and before you begin, BACKUP all your files in case something goes wrong. http://www.zen-cart.com/forum/showthread.php?t=45710

 

 

Similar Threads

  1. Replies: 5
    Last Post: 3 Mar 2019, 04:25 PM
  2. v154 Deleting an Option with a "TEXT" or "FILE" value for ALL products
    By kcb410 in forum Setting Up Categories, Products, Attributes
    Replies: 26
    Last Post: 3 Feb 2015, 08:18 PM
  3. v150 Is there a way to create a "select all" option at top of dropdown list?
    By doktorfroyd in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Aug 2012, 01:35 AM
  4. HELP - ALL Attributes are showing up as "Text" for option value!
    By NWFAP in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 Jan 2012, 01:14 AM
  5. Replies: 1
    Last Post: 10 Aug 2011, 02:07 AM

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