Jeg har downloadet oscommerce_multi_images og kan ni se, at der skal foretages ændringer i MySql og her må jeg indrømme at jeg er på herrens mark for jeg har aldrig arbejdet med MySql på den måde før.
Her er hvad der står i readme filen:
1. make changes to db
// ADD FIELDS FOR NEW IMAGES IN DATABASE ///////////////////////////////
// Use MySqlAdmin or similar took for accessing your database.
ALTER TABLE `products`
ADD `product_image_2` VARCHAR( 64 ) NULL DEFAULT NULL ,
ADD `product_image_3` VARCHAR( 64 ) NULL DEFAULT NULL ,
ADD `product_image_4` VARCHAR( 64 ) NULL DEFAULT NULL ,
ADD `product_image_5` VARCHAR( 64 ) NULL DEFAULT NULL ,
ADD `product_image_6` VARCHAR( 64 ) NULL DEFAULT NULL ;
2. make changes to admin/categories.php using file in admin folder. Added a few pointers for the code change.
look for :
// BOF astro - update database with new images
// EOF astro - update database with new images
3. make changes in file catalog/product_info.php using added file.
Look for SUHY BOF -> SUHY EOF for changes needed to apply
4. add the followig to languages/english/products_info.php .... change other lng files also !
define('TEXT_IMAGE_MOUSOVER', 'please hover over small images for other pictures preview');
define('TEXT_IMAGE_POPUP', 'DELKO & EBAX e Catalog, image in PopUp.');
you can also change the following line since its used for popup image now :
define('TEXT_CLICK_TO_ENLARGE', 'Open in PopUp');
5. final step.
- upload thumbnailviewer2.css to your catalog folder
you can play with thumbnailviewer2.css for css style
Have fun !
Suhy
In this version I also added a nice pop-up solution on the link bellow. Mind to include java script in header if u want to use this ...
With this you can have now 3 image views
- on mose over image => CSS
- nice popup => javascript by text link under picture
- open in same window or new window ... using picture link ...
Hel nøjagtig, hvad er det jeg skal gøre?
/dkgryf