Contributions
AJAX image attributes
This contribution is based on the options as images contribution:
(http://addons.oscommerce.com/info/1467)
This contribution uses an AJAX script to load images linked with attibutes of a product. This way the drop-down list keeps functioning and the script loads the corresponding image onto the website.
A working example can be found on:
http://www.suitingyou.nl/nieuw/product_info.php?products_id=8
Example pictures are included in the package.
Reason for making this a brand new contrib rather then a new version of options as images is because the catalog side has completely changed and is not using any of the initial code anymore.
Functions are basically the same:
- Link images to attributes
- Allow for an enlarged picture
- Define width and height of pictures
- Switch contrib on/off
- AJAX loaded pictures on the product_info.php
Expand All / Collapse All
To Use this contrib with STS, couple of tweaks are necessary:
in modulesstssts_default.php find:
if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "info_shopping_cart"))
return ''; // We don't use template for these scripts
replace with:
if (strstr($scriptbasename, "popup")|| strstr($scriptbasename, "ajaximage")|| strstr($scriptbasename, "info_shopping_cart"))
return ''; // We don't use template for these scripts
2) Make sure JS Script (the one is included usually in products_info.php) is included in STS template files (e.g. index.php.html and sts_default.php.html)
Bug fix for v1.1.
Small change in the readme,txt file where a line was missing resulting in attribute images not showing at all.
// Attached Full package
Changed the product_info.php script so that only attributes selected as 'enabled options as images' will show an example image.
Support forum:
http://forums.oscommerce.com/index.php?showtopic=343765
Attached: zip with this text.
This contribution is based on the options as images contribution:
(http://addons.oscommerce.com/info/1467)
This contribution uses an AJAX script to load images linked with attibutes of a product. This way the drop-down list keeps functioning and the script loads the corresponding image onto the website.
A working example can be found on:
http://www.suitingyou.nl/nieuw/product_info.php?products_id=8
Example pictures are included in the package.
Reason for making this a brand new contrib rather then a new version of options as images is because the catalog side has completely changed and is not using any of the initial code anymore.
Functions are basically the same:
- Link images to attributes
- Allow for an enlarged picture
- Define width and height of pictures
- Switch contrib on/off
- AJAX loaded pictures on the product_info.php
Note: Contributions are used at own risk.