Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Mar 2009
    Posts
    88
    Plugin Contributions
    0

    Default Location of subcategory files?

    I am trying to find the files that contain my subcategory html pages so I can edit the html directly in the file itself instead of going to the admin to edit it. TIA!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Location of subcategory files

    There are no subcategory HTML pages in Zencart. Everything is built from PHP files and database entries. Let us know exactly what you want to change, and we might be able to help.

  3. #3
    Join Date
    Mar 2009
    Posts
    88
    Plugin Contributions
    0

    Default Re: Location of subcategory files

    Thanks stevesh. I am building custom subcategory pages & Zencart is limiting how long the page can be. If it goes over a certain length, the code gets scrambled. Is there a way around this?

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Location of subcategory files

    Quote Originally Posted by hflsales View Post
    Thanks stevesh. I am building custom subcategory pages & Zencart is limiting how long the page can be. If it goes over a certain length, the code gets scrambled. Is there a way around this?
    There aren't any "subcategory pages"... "Pages" - in the sense of static HTML pages - do not exist. Content and Information is stored in the DATABASE - not in any "files" - so your hunting for HTML files will lead you nowhere.

    All category INFORMATION and CONTENT is contained in the database, and you add your content there (for categories, it is via the category EDIT function.)

    There is technically NO LIMIT to the quantity of data you add, so if you wanted a category description to run to the length of Tolstoy's "War And Peace", this is quite possible (though impractical).

    "Pages" are built on-the-fly by the PHP code, which gathers up the data and resources (such as images and DEFINE VARIABLES) and ASSEMBLES each page for the user - depending on what the user REQUESTS.

    The "page" is delivered to the browser, and when the visitor clicks a link or performs an action, that "page" EVAPORATES FOREVER, and a NEW page is built by the PHP, which is then delivered to the browser.

    Along the way, calculations can be made (and data stored), but EACH PAGE is made up for EACH UNIQUE VISITOR. And when they move around in the site, these pages "vanish" and new ones are made in their place.
    20 years a Zencart User

  5. #5
    Join Date
    Mar 2013
    Posts
    95
    Plugin Contributions
    0

    Default Re: Location of subcategory files

    i believe the length is set in the database, go to your database and edit for the subcategory, and increase the length it would accept. for example, say the sub category is set as VARCHAR(32), change this to VARCHAR(64) or anything longer

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Location of subcategory files

    Quote Originally Posted by denniszc View Post
    i believe the length is set in the database, go to your database and edit for the subcategory, and increase the length it would accept. for example, say the sub category is set as VARCHAR(32), change this to VARCHAR(64) or anything longer
    Just wondering how is this relevant to the question?

    Cheers
    Rod

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Location of subcategory files

    Quote Originally Posted by hflsales View Post
    Thanks stevesh. I am building custom subcategory pages & Zencart is limiting how long the page can be. If it goes over a certain length, the code gets scrambled. Is there a way around this?
    It may be i don't know what you mean by 'subcategory pages'. If you mean the product listing, there's an option in Admin - Configuration - Product Listing - Display Product Description that allows you to set the maximum length of the description . The default is 150 characters.

  8. #8
    Join Date
    Mar 2009
    Posts
    88
    Plugin Contributions
    0

    Default Re: Location of subcategory files

    I went into the database and found the html for the category_description. But the html I need to edit is a sub category of a sub category. Does anybody know where I can find that? It is exactly what I need but not sure how to find it.

  9. #9
    Join Date
    Mar 2009
    Posts
    88
    Plugin Contributions
    0

    Default Re: Location of subcategory files

    I found it but it says "Because of its length, this column might not be editable". Does anybody know how to make the text length of a column longer in the database?
    Last edited by hflsales; 24 Apr 2013 at 04:29 PM.

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Location of subcategory files

    Quote Originally Posted by hflsales View Post
    I went into the database and found the html for the category_description. But the html I need to edit is a sub category of a sub category. Does anybody know where I can find that? It is exactly what I need but not sure how to find it.
    ALL categories are stored in the CATEGORIES table.. (this includes SUB-categories)

    The BIGGER question is WHY are you editing the category description in the categories TABLE when there is an entire admin section that allows you to CREATE and EDIT categories where you can do this????
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 1 Sep 2013, 05:47 AM
  2. Skip subcategory link and list all subcategory products as product listing
    By ellivir in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Aug 2010, 05:06 PM
  3. Location of main files
    By icklebits in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 12 May 2007, 09:50 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