Topic: Category Images
It appears that all along, there have been fields in the category table that allowed for category images (thumb and full) - there just doesn't seem to have ever been any code written to allow those fields to be utilized. I have updated the appropriate .ihtml/.inc files (from the 0.8.1 version) to allow the user to update those fields (thumb and full image) for categories as they would for products. The updated files can be downloaded here:
http://www.newmanit.com/jnewman67_category_images.zip
Just download the zip file, unzip, and copy the updated files (4 files total) to their appropriate locations (file structure is maintained), and with the other two changes below, it should be up and usable. There were no DB modifications to get this working.
You will need to create a ./images/shop/category folder and assign read/write priviledges at the user and group level. Category images will be stored in this folder.
In order to display the category images, you will need to use a modified "show_images" function call. The current "show_image" function is in the ps_product class, but it is specific to products. To display the category images, you will need to reference the "show_image" function that's in the ps_product_category class.
EXAMPLE:
product images: <?php $ps_product->show_image($db->f("product_thumb_image")); ?>
category images: <?php $ps_product_category->show_image($db->f("category_thumb_image")); ?>
If you find any issues, please let me know.
