Home arrow Downloads arrow Linux Scripts arrow osCommerce - Category Details patch
osCommerce - Category Details patch PDF Print E-mail
Written by DjTremors   
Saturday, 24 May 2008

Here is a patch which I needed to display more information than just the title "Categories" on the top of the screen. You can place the text on the right side or at the top of the list if you like to giving more information to the customer on where they are. You just need to make mods if you want it at the top as this patch uses the left or right boxes method.

There are 4 parts to the patch :

  • patching the admin/categories.php file giving the ability to add/edit the content.
  • adding the new file /includes/boxes/categories_details.php, this is mainly to display on the right column if you want.
  • patching the includes/column_right.php to included the new categories_details.php file above.
  • mysql patch which includes the details column needed.

You will need to first modify your MySQL osCommerce table. I used a type BLOB for the details data as this can be any size but is generally slower. Because I know some people/clients use large HTML to display information, this is a good one to use otherwise just use a VARCHAR with a big enough size.

ALTER TABLE `categories_description` ADD `categories_details` BLOB NOT NULL AFTER `categories_details`

 

Download the patch file to apply the patch at the root of the store. if you are using a /shop or /catalog in your URL then go into that directory and run the patch command with the correct path to the patch.

patch -p0 < osc-rc2.patch

 

Download : patch file and categories_details.php

  osc_admin_catdes_edit.png

 

osc_admin_catdes_idx.png

have fun patching.

Last Updated ( Saturday, 24 May 2008 )
 
< Prev   Next >

Buy great gadgets at

GetDigital