Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enhanced Category Headers


jimmygreaves

Recommended Posts

I've had a little play with the admin/categories.php and admin/includes/functions/general.php files so I can have enhanced category headers. All pretty good so far but I'm having a problem getting categories.php to write some parts of the inputted info to the database.

 

I've added new fields in the "categories_description" table to hold an expanded heading for each subsection and a short introduction, I've also added an image field to the "catagories" table to hold an extra image.

 

I currently have 2 problems:

 

1. If the 2 image input fields are blank on the "edit category" form and it is submitted the image info already being used is wiped from the database. How can I ensure this doesn't happen - i.e. if the input field is blank the effected records are not altered on the db.

 

2. My categories.php file can grab all the info it requires from the db no problem but for some strange reason one of the new fields will not write to the db. Where is the code which handles writing to the db.

 

 

Any help anyone?

 

 

 

Just for completeness here is my categories.php code...........My File

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...