Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Custom Override for One Category Description Page

Custom Override for One Category Description Page

Locked

Views: 1,163

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Nov 2007, 6:45 PM
#1
gardenpondcenter avatar

gardenpondcenter

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Custom Override for One Category Description Page

First time posting.

I have a website: https://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. :D

Regards,
-Dustin Graham
GardenPondCenter

12 Nov 2007, 7:02 PM
#2
gardenpondcenter avatar

gardenpondcenter

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

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