Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2007
    Posts
    77
    Plugin Contributions
    0

    Default Main page text on subcategories with subcategories

    On the home page, you can display the main_page text. The problem is that if you drill down one level to a sub category that has no products, but rather has additional subcategories, the main_page text still appears instead of just the intro text that you assign to that category.

    In admin, there is no way to adjust this setting.

    For example:

    Home: main_page text
    ---Shirts: main_page text at top (not desirable) + Shirts text
    -----Black Shirts: Black Shirts Text
    ------Product a
    ------Product c
    ------...

    How can I control the text on the Shirts level so that it does not include the main_page text?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Main page text on subcategories with subcategories

    Post a url to your site - main_page.php should only be parsed on the main page
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2007
    Posts
    77
    Plugin Contributions
    0

    Default Re: Main page text on subcategories with subcategories


  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Main page text on subcategories with subcategories

    What ae the differenes between the INTERACTIVE ART, AQ DIGITAL QUEST, ART, COLLECTIBLES, FOR HOME OR OFFICE and others??

    These are all listed under categories and you can add text to the category description as I see that you have for some. Have you inadvertantly added the main page text to some of these? As a cat with none should display like your COLLECTIBLES does.

    Or did you omit the category title? as INTERACTIVE ART does not display the title like COLLECTIBLES
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2007
    Posts
    77
    Plugin Contributions
    0

    Default Re: Main page text on subcategories with subcategories

    The client is still adding products and descriptions to the site. Once the additions have been made, there will be more than one product in each category.

    I didn't add the home page text to the sub categories. However, when the categories have subcategories with no products under them, the home page text is displayed. I can add text under it, but I cannot remove the home page text.

    Notice that the only thing in these categories are subcategories and not products.

    This happens to the following categories:
    AQ ART

    AQ INTERACTIVE ART

    ARTZQUEST KIDS

    It does not occur on categories that have products directly under them.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Main page text on subcategories with subcategories

    I looked at this and even set up a cat with empty sub cats and can not reproduce what you have....????
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Mar 2007
    Posts
    77
    Plugin Contributions
    0

    Default Re: Main page text on subcategories with subcategories

    I'm not sure what it was. However, I solved the problem by replacing the following code on line 34 of tpl_index_categories.php:

    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>

    with this:

    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2 && !$_GET['cPath']) { ?>

    Now it works.

    However, it doesn't seem very secure to me to use cPath without validating it. But, I don't see anywhere in the Zen-Cart where cPath is validated. Isn't that a security issue?

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Main page text on subcategories with subcategories

    Messing with code to fix something that should not be broke is not the best plan - While it may seem most expeditious.
    Are there other files that have been edited for function???
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Mar 2007
    Posts
    77
    Plugin Contributions
    0

    Default Re: Main page text on subcategories with subcategories

    No function files have been changed to my knowledge. I did add some contributions, but none were related to the product listing.

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Main page text on subcategories with subcategories

    I solved the problem by replacing the following code on line 34 of tpl_index_categories.php:
    This was the file that I was referring to where you state that you edited it.
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 11
    Last Post: 4 Feb 2015, 04:37 PM
  2. v150 subcategories are displaying a dot only instead of text on main page
    By pc4good in forum Basic Configuration
    Replies: 2
    Last Post: 22 Mar 2012, 03:52 AM
  3. Show subcategories on main page
    By moto-x712 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jan 2010, 11:27 AM
  4. Replies: 1
    Last Post: 13 Jul 2009, 09:12 PM
  5. Subcategories & sub-subcategories page links are stacking
    By METOOTECH in forum General Questions
    Replies: 2
    Last Post: 16 May 2007, 03:35 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