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. FAQ Manager
    By ccn1 in forum All Other Contributions/Addons
    Replies: 368
    Last Post: 29 Nov 2011, 09:20 AM
  2. Internet Explorer 7.0 Released - HELP!
    By mafiasam in forum Templates, Stylesheets, Page Layout
    Replies: 63
    Last Post: 29 Jun 2009, 03:51 AM
  3. Sub category page layout change
    By nav007_2000 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Jul 2007, 11:58 PM
  4. Replies: 3
    Last Post: 11 Sep 2006, 07:37 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
  •