Results 1 to 2 of 2
  1. #1

    Idea or Suggestion Custom Override for One Category Description Page

    First time posting.

    I have a website: www.gardenpondcenter.com and I am learning the zen cart system. I like a lot of the features and extendability. I am wondering if this idea I have is possible. Anything is possible, but I am wondering what the proper procedure to keep it zen-cart friendly.

    Currently, to modify the text on a category page, I go to Admin -> Categories / Products -> The category, and (E) to edit it. And I can insert html, php, text there. That's fine. However, I was hoping there would be a way to have a custom file replace that section of text. I was thinking maybe I could just put this into the category description...

    require(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_MY_CUSTOM_CATEGORY_PAGE, 'false'));

    And, of course create the file, and add a define in my extra_datafiles/more_filenames.php. Is that the right approach. I am doing this because I would like to be able to edit the content from an HTML editor. I use Adobe Dreamweaver. The main page, and contact page, and my policy page, and all that I can edit the content in dreamweaver. But, not for categories, because they are handled by the database. All thoughts are welcome. Thankyou.

    Regards,
    -Dustin Graham
    GardenPondCenter

  2. #2

    Default Re: Custom Override for One Category Description Page

    Okay, apparently I can't post php in the category description. This makes sense because the description is stored in the database and posted on the page without parsing the <?php ?> tags. Maybe there's a way to force it to evaluate these tags when drawing information from the database. Still thinking.

    Regards,
    -Dustin Graham
    GardenPondCenter

 

 

Similar Threads

  1. Custom style sheet for one product category only
    By BiillO in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Aug 2011, 01:38 PM
  2. Custom preview description for product listing page
    By arunkarthik in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 May 2010, 08:06 PM
  3. How to set up custom ship rates for one category only?
    By aly22 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 14 Sep 2009, 07:41 PM
  4. override language for one page - is this possible?
    By bonnit in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Aug 2009, 07:20 PM
  5. Custom Page For Each Category
    By Craig Robbo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jan 2009, 11:36 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