Community Add-Ons

Add file to this package
Top » Features

Extra Images
for osCommerce Online Merchant v2.2

This contribution will give you the ability to have multiple images per product.
There are several contributions available that allow you to have different size
images, or multiple images, but none of them seemed to work for my needs. So I
created my own version which has no limit on the amount of images you can add.

The way this contribution works is very simple, it keeps extra images in a new
table in the database. Each product can have the 1 main image (in the products table) as
well as an unlimited number of images from the new extra_images table.

Includes admin interface for adding images to each product, also has 2 options for how the images will be displayed.

Tested with 2.2 MS1

Legend:  Download   Report
Expand All / Collapse All
Updates for Extra Images listing display junglecoder 16 Aug 2009  

products_extra_images.php:

I was getting multiple listings displayed in the extra images list in the admin (catalog/admin/products_extra_images.php). I updated the products_extra_images_query_raw query around line 194 with a DISTINCT and GROUP BY clause to fix the problem.

There are also features such as specifying an image that is already uploaded that I commented out in the options box when adding/editing extra images. I simplified this section because it is too confusing for my clients.

I also updated the select box so that only products with names display.

html_output.php:

Also, I don't like how OS Commerce displays thumbnail images. I want them to be proportional to the actual size of the full image. So I have also included an updated catalog/admin/includes/functions/html_output.php that has an updated tep_image() function. If the passed image size is the same as the constant SMALL_IMAGE_WIDTH and an extra parameter $forced_unproportion is not set to true, then the image ratio is calculated based on configuration settings in the database table `configuration`. I have included the SQL to insert the new settings as well.

Hope someone finds this useful. Happy coding!

ADMIN FIX - Resolvido problema no admin techzin 11 May 2008  
Imagens extras com lightbox PORTUGUES BRASIL digaovr 20 Apr 2008  
Small Fixes nuranto 28 Aug 2007  
IMAGENS EXTRAS ADICIONADAS PELO NOME digaovr 25 Jul 2007  
Bug Fix For v-1.6.1 (update instruction only) kocu 26 Jun 2007  
Extra Images - v 1.6.1 (Complete Package) sabaina 28 Apr 2007  
Extra Images - v 1.6 (Complete Package) sabaina 27 Apr 2007  
Extra Images - v 1.5 (Complete Package) sabaina 11 Feb 2007  
Admin mod (use product names instead of models) IGNORE PREVIOUS ENTRY Kaiser 1 Dec 2006  
Admin mod (use product names instead of models) Kaiser 1 Dec 2006  
Extra Images 1.4 ***orchid*** 24 Nov 2006  
Extra Images 1.4 ***orchid*** 16 Nov 2006  
Extra images - upload more than one image jashnu 25 Jul 2006  
extra Images with admin 1.3 quick_fixer 11 Mar 2006  
Fix install.txt seg 8 Mar 2006  
Extra Images with updated strings defines sebastic 10 Feb 2006  
Extra Images with admin xav 23 Nov 2005  
Extra Images with admin xav 23 Nov 2005  
Change popup resizing Randelia 12 Nov 2005  
Alternative Admin moosey_jude 9 Nov 2005  
Fix to delete extra images along with a product moosey_jude 7 Nov 2005  
Image Upload StuBo 5 Oct 2005  
extra_images_14 Mikel Williams 6 Jul 2003  
extra_images_13 Mikel Williams 6 Jul 2003  
extra_images_12 Mikel Williams 26 Jun 2003  
Extra Images 1.1 Mikel Williams 12 Jun 2003  
Extra Images Mikel Williams 11 Jun 2003