Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  Multiple Product Images With Slide Show

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
This is a fix for the navigation buttons.
I found the Next button worked fine but the previous button was trying to navigate to an invalid number in the array when you changed between forwards and backwards navigation.
=================================
In catalog/product_info.php
=====================
// ** REPLACE the entire slideFader function with:
function slideFader(direction){

if (direction == 1) {
if (backSlide==1){
slideStation=slideStation+2
}
alert(slideStation)
if(slideStation == slideList.length){
slideStation = -1;
slideImage = headImage;
slideImageOriginal = "<?=DIR_WS_IMAGES . $product_info['products_image']?>";
}else{
slideImage = slideList[slideStation];
slideImageOriginal = slideListOriginal[slideStation];
}
slideStation++;
backSlide=0;
forwardSlide=1;
}

if (direction == -1) {
if (forwardSlide==1){
slideStation=slideStation-2
}
alert(slideStation)
if (slideStation==-2) {
slideStation= slideList.length-1;
slideImage = slideList[slideStation];
slideImageOriginal = slideListOriginal[slideStation];
}else if (slideStation==-1) {
slideStation= slideList.length;
slideImage = headImage;
slideImageOriginal = "<?=DIR_WS_IMAGES . $product_info['products_image']?>";
}else{
slideImage = slideList[slideStation];
slideImageOriginal = slideListOriginal[slideStation];
}
slideStation--;
backSlide=1;
forwardSlide=0;
}

sPanel = document.getElementById("slidePanel");
sPanel.innerHTML = "<img src='"+slideImage+"' hspace='5' vspace='5'/>";

}
This is a slightly tweaked version of Matchboxes last version dated 8 mar 2008,

This tweak removes the forward and back buttons if only one image is used for a product

If you have already applied the original Multiple Product Images with Slide show code, and Matchboxes code all you need to do is the following

In product_info.php
at Line 163 or there abouts

FIND

<?php echo '<tr>
<td class="smallText" align="right">
<input type="button" onClick="slideFader(-1)" value="<< Previous" name="prev" />
<input type="button" onClick="slideFader(+1)" value="Next >>" name="next" />
</td>
</tr>';?>

REPLACE WITH

<?php
if ($cleanedCount > 1)
{
echo '<tr>
<td class="smallText" align="right">
<input type="button" onClick="slideFader(-1)" value="<< Previous" name="prev" />
<input type="button" onClick="slideFader(+1)" value="Next >>" name="next" />
</td>
</tr>';
}
?>

The file included in the Zip is a copy of matchboxes code with this update applied. You still need Markus Bopp's update piss_0_1_1.zip which is below.
   Posted on: 01/28/2009     See contribution details Request Installation with Paid service