Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1

    Default Main page in categories.

    Can anybody please tell me how to stop the main page showing when I click on a main category that only has sub-categories?

    It doesn't happen with sub-categories - it just shows a list of sub-categories.

    So why doesn't a top level category?

    I for one find it annoying to scroll down to the bottom of the page to find the sub-categories and I at first thought that I was still on the home page, I'm sure a lot of my visitors do too!

    Any ideas?

    If it's any help I am using Purpleshades template and better/tabbed lite.
    Robin

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

    Default Re: Main page in categories.

    A link to your site and an indication as to which category you're referring to would be helpful, so that we can see exactly what you're seeing.
    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

    Default Re: Main page in categories.

    http://informationhaven.co.uk/shop/

    It happens in all categories that have sub-categories, which at the moment is all but one!

    Videos does not have sub-categories and this is how I would like the others to appear.
    Robin

  4. #4

    Default Re: Main page in categories.

    If this cannot easily be resolved I will have to create top categories for everything?
    Robin

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

    Default Re: Main page in categories.

    Where did you insert this HTML? You personally had to have entered at least some of it, and I think it is in the wrong file.
    Code:
    <div class="row"><span class="left">The total number of products in our catalogue is  </span><span class="rigth">Object</span></div><br> <p>Have we got news for YOU!</p>...

  6. #6

    Default Re: Main page in categories.

    This is a subject that is being covered by Ajey and has no bearing as this particular problem that we are discussing existed before my post to Ajey.
    Robin

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

    Default Re: Main page in categories.

    Actually, it is relevant, as this is part of what appears on every page with subcats. tpl_index_categories.php I believe is the file that handles this, though it may be calling in this info from another file.

    I guess this part of tpl_index_categories.php is responsible for displaying the offending text, though why it is displaying it is the big question:
    PHP Code:
    <?php if (DEFINE_MAIN_PAGE_STATUS >= and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <div id="indexCategoriesMainContent" class="content"><?php
    /**
     * require the html_define for the index/categories page
     */
      
    include($define_page);
    Last edited by gjh42; 20 Jul 2007 at 09:36 PM.

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

    Default Re: Main page in categories.

    DEFINE_MAIN_PAGE_STATUS looks like the key to this...

  9. #9

    Default Re: Main page in categories.

    You've lost me because you are quoting things that I do not understand, but I will try, be gentle with me.

    The code on the main page is entered through main page define, and is now working properly through a php include/echo.

    I have not altered any base code.

    You are correct in that this is a big problem, to me anyway.

    I have a work-around in that all I can think of is to replace my sub-categories with top level categories.
    That will cure my immediate problem but not in the way that I would like.

    It is nice however to present a problem that may not have appeared before, I like a challenge!
    I have been trying to get this shop off the ground for five years and every day presents a new challenge!
    Bless!
    Robin

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

    Default Re: Main page in categories.

    The behaviour that you are experiencing is not how Zen Cart normally works.

    You must have changed some of the code to insert your bookmarking links, and like gjh42, I rather suspect that you have accidentally swept the code that inserts the main page text into your changes.

    Unfortunately these changes are to code that is on your server, so we can only see the results, not the amended code that is generating them.

    I would compare your tpl_categories_index.php with the one that comes in the Zen Cart release package to find and account for the differences.
    Kuroi Web Design and Development | Twitter

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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v152 Making a next page/previous page button for categories on main page
    By jrobletto in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jul 2014, 11:18 AM
  2. 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
  3. Categories on main page
    By JAAE in forum Basic Configuration
    Replies: 3
    Last Post: 10 Aug 2008, 02:36 PM
  4. categories on main page
    By bigum in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Jul 2008, 01:00 AM

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