Contributions

Features (Category Index)
Search: 

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

Using Ajax Image Attr. with STS 16 Aug 2010

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)

AJAX image attributes v1.1 - Bug fix 13 Oct 2009
AJAX image attributes v1.1 8 Sep 2009
SUPPORT FORUM 28 Aug 2009
AJAX image attributes 28 Aug 2009

Note: Contributions are used at own risk.