Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Feb 2007
    Posts
    7
    Plugin Contributions
    0

    help question How to show a specific category on main page

    I would like to show the sub-categories of a specific Top Level category on the Main Page. How can I do this?


    There seems to be a clue here:

    Configuration > Layout Settings > Categories - Always Show on Main Page:

    Default category can be set to Top Level or a Specific Top Level

    How do I set the default category to a Specific top level?
    Loquela Japan Online
    Everything About Japan

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to show a specific category on main page

    Be sure to set that Category in the next question:
    Main Page - Opens with Category
    0= Top Level Categories
    Or enter the Category ID#
    Note: Sub Categories can also be used Example: 3_10
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to show a specific category on main page

    Many thanks Ajeh,

    But this now seems to dissable the ability to show Featured Products and/or New Products in the Main Page centre column.

    I would like to have two boxes in the centre column the first showing the Featured Products and the second showing the sub cats as described above. Is this possible?
    Loquela Japan Online
    Everything About Japan

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

    Default Re: How to show a specific category on main page

    Admin > Configuration > Index Listing has settings for a variety of situations, like
    Show Featured Products on Main Page - Category with SubCategories.


    I'm not sure if you can get the Featured centerbox above the subcat display... I recall seeing code to handle this type of function, but not sure in which file.

  5. #5
    Join Date
    Feb 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to show a specific category on main page

    Thanks Glenn,

    If I set 'Main Page - Opens with Category' to 0, top level categories show and Features Products appear fine. But if I set 'Main Page - Opens with Category' to display a sub category, the Featured Products do not display. Is there a way around this?
    Loquela Japan Online
    Everything About Japan

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

    Default Re: How to show a specific category on main page

    Look at the Index Listing settings mentioned above.

  7. #7
    Join Date
    Feb 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to show a specific category on main page

    Thanks Glenn,
    Index Listing > Show Featured Prroducts on Main Page is set to display. As mentioned above Featured Products do display fine when Layout Settings > Main Page Opens With Category = 0, but when I set this to a sub category the Featured Products no longer appear.
    Loquela Japan Online
    Everything About Japan

  8. #8
    Join Date
    Feb 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to show a specific category on main page

    I currently have the following settings:
    • Index Listing > Show New Product on Main Page (2)
    • Index Listing > Show Featured Products on Main Page (3)
    • Index Listing > Show New Product on Main Page - Categories with Sub Categories (2)
    • Index Listing > Show Featured Product on Main Page - Categories with Sub Categories (3)
    If I now do this:

    Layout Settings > Main Page Opens With Category (0)

    Index page centre column displays fine:
    • Top level categories
    • New Products
    • Featured Products
    But if I do this:

    Layout Settings > Main Page Opens With Category (17)

    All that is displayed are the category 17 contents, no New Products and no Featured Products.

    I checked the tpl_index_categories.php that is called when you set a new default category in Layout Settings > Main Page Opens With Category, and the code for displaying Featured Products and New Products appears to be in tact:

    PHP Code:
     
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php 
    ?>
    <?php 
    if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_SPECIALS_PRODUCTS') { ?>
    PHP Code:
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php 
    ?>
    <?php 
    if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_UPCOMING') { ?>
    Can anybody explain why Featured Products and New Products are not displaying in tpl.index_categories.php??
    Loquela Japan Online
    Everything About Japan

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

    Default Re: How to show a specific category on main page

    tpl.index_categories.php is not involved in the problem you describe.

    Configuration > Index Listing > Show Featured Products - below Product Listing

    applies to the product listing page.

  10. #10
    Join Date
    Feb 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to show a specific category on main page

    tpl.index_categories.php is not involved in the problem you describe.
    Yes it is.

    Layout Settings > Main Page Opens With Category (0) uses tpl.index_default

    But if you change the default category:

    Layout Settings > Main Page Opens With Category (number of sub cat) calls tpl.index_categories instead

    And for some reason, this page is refusing to display Featured Products and New Products centre boxes.

    Configuration > Index Listing > Show Featured Products - below Product Listing applies to the product listing page.
    This is very true, but I am not interested in configuring the product listing page, I am trying to configure the index page centre column to show a specific category plus the Featured Products center box.
    Loquela Japan Online
    Everything About Japan

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 can I link an ez-page to show a specific category?
    By noyloza in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Nov 2012, 06:30 PM
  2. Category: Show on Main Page - Possible to use specific categories?
    By Treasuresbycaz in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 6 Feb 2010, 01:54 AM
  3. specific banner to show for specific category
    By vijay in forum Basic Configuration
    Replies: 1
    Last Post: 26 Aug 2009, 01:19 PM
  4. Getting sub category images to show up on the main category page
    By VigilantWine in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 16 Feb 2009, 09:45 AM
  5. Show sub categories for one main category on main page
    By relspeedwagon in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Oct 2008, 11:29 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