Community Add-Ons

Add file to this package
Top » Features

Photo Gallery
for osCommerce Online Merchant v2.2

This will allow all products to have a photo gallery. Where it once said 'click to enlarge', it will say 'click to view photo gallery'. The visitor will have the ability to surf through numerous pics that you provide.

Legend:  Download   Report
Expand All / Collapse All
Photo Gallery - updated to photo_gallery.sql Trusten 1 Nov 2002  

*** didn't fix anything major, just a slight change to photo_gallery.sql ***

This will allow all products to have a photo gallery. Where it once said 'click to enlarge', it will say 'click to view photo gallery'. The visitor will have the ability to surf through numerous pics that you provide.

The code is not as hard as it may seem.

Step one:
upload the photo_gallery.sql, that's provided, to your database

Step two:
create a folder called gallery: catalog/gallery


Step three:
create a folder depending on your product ID number. For example, product 42:
catalog/gallery/42/


Step four:
edit and upload the popup_image.php file that is within the zip, making sure to replace USERNAME, PASSWORD, DATABASE with the correct username, password, database. BE SURE TO BACK UP YOUR OLD ONE.

Step five:
after backing up your product_info.php file, then edit the size of the javascript window. width=200,height=200 (something like that).

Step six:
in catalog/includes/languages/english/product_info.php

FIND

define('TEXT_CLICK_TO_ENLARGE', 'Click to Enlarge');


CHANGE TO

define('TEXT_CLICK_TO_ENLARGE', 'Click to view photo gallery');

and that's all. Just make sure to create a folder for each product.

and remember, rename each pic in that folder, 1.jpg, 2.jpg up to 14.jpg (more if you need to)


Trusten

Photo Gallery Trusten 1 Nov 2002