Check this article in the Tutorials/FAQ section
www.zen-cart.com/tutorials/index.php?article=11
How should I comment replaced code? ie. a sql select statement in category_product_listing.php is changed from
to thisPHP Code:$categories = $db->Execute("select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status
Should I comment out the entire original code block and then add mine in with the //BOF...//EOF comments?PHP Code:$categories = $db->Execute("select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status, c.menu_status
Thanks for your help, by the way!![]()
I'd just do this
Code://Header Control Menu changed 11/16/2009 $categories = $db->Execute("select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status, c.menu_status //Header Control Menu
OK, I've repackaged the mod files, in the manner clydejones suggested. Thanks again!
HeaderMenuControl.zip
This is much better.
The mod works just fine. I set it up on my local server without problems.
One thing to change in the "install.txt"
Change this:
#
#-----[ SQL ]------------------------------------------
#
Run the header_menu_control.sql file in the SQL window of your database manager.
To This:
# run the header_menu_control.sql file using the Zen-Cart Sql Patches tool
# (admin -> tools -> install sql patches)
# For best results, copy-and-paste the code into the query field and press 'Send'.
Ya know, I just realized I'm using your Cold Steel template on a site!![]()