Jump to content
Sign in to follow this  
bluewaterbob

Extra Images module for Osc ver 2.2rc2a?

Recommended Posts

The Extra Images Addon (available at http://addons.oscommerce.com/info/1289) shows its been tested on ver MS1 which is no longer available for download. I'm trying to install it on the current latest ver 2.2rc2a, but I am having a problem with the instructions to add code to product_info.php

 

(I'm wanting to use the 'Extra Images' Addon because it is recommended by MagicToolBox.com's MagicZoom.)

 

The instructions say:

---------------------------------------------------------

/catalog/product_info.php

Find :

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>

</tr>

<?php

} else {

 

After Add :

if (DISPLAY_EXTRA_IMAGES == 'true'){

if ($product_check['total'] >= 1) {

include (DIR_WS_INCLUDES . 'products_extra_images.php');

}

}

 

-----------------------------------

but in ver 2.2rc2a the '} else {' line doesn't follow the line with the 'TEXT_DATE_ADDED' code, it precedes it, so adding a 2nd else statement would cause it to never be activated.

 

Does anyone have Extra Images Addon working in ver. 2.2rc2a or ver 3?

 

Does anyone have an idea where the code should be added. I don't have a copy of the MS1 version of product_info.php to understand how the code should be in ver 2.2rc2a. If anyone could provide that I'd appreciate it.

Share this post


Link to post
Share on other sites

I've been using Extra Images for years and it works fine with 2.2rc2a no idea about 3. The products_extra_images.php is wrapped in a table so you can put the following

 

<tr>

<td>

<?php

if (DISPLAY_EXTRA_IMAGES == 'true'){

if ($product_check['total'] >= 1) {

include (DIR_WS_INCLUDES . 'products_extra_images.php');

}

}

?>

</td>

</tr>

Share this post


Link to post
Share on other sites

---------find

TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

</td>

</tr>

 

---------and put after

<tr>

<td>

<?php

if (DISPLAY_EXTRA_IMAGES == 'true'){

if ($product_check['total'] >= 1) {

include (DIR_WS_INCLUDES . 'products_extra_images.php');

}

}

 

?>

</td>

</tr>

 

---------this will put the extra images under your prod image.

hope this helps

Share this post


Link to post
Share on other sites

---------find

TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

</td>

</tr>

 

---------and put after

<tr>

<td>

<?php

if (DISPLAY_EXTRA_IMAGES == 'true'){

if ($product_check['total'] >= 1) {

include (DIR_WS_INCLUDES . 'products_extra_images.php');

}

}

 

?>

</td>

</tr>

 

---------this will put the extra images under your prod image.

hope this helps

 

Did not worked for me...

I see the extra images but when I click on to enlarge them I get a page of 404 error and the following browser error:

 

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; .NET4.0C)

Timestamp: Fri, 16 Jul 2010 20:57:48 UTC

Message: 'window.document.prodimg' is null or not an object

Line: 235

Char: 1

Code: 0

URI: http://www.mydomainname.com/product_info.php?products_id=131

 

 

Message: 'window.document.prodimg' is null or not an object

Line: 235

Char: 1

Code: 0

URI: http://www.mydomainname.com/product_info.php?products_id=131

 

I know there are many contrib for adding extra images to products.

Any other contrib you guys would recommend in alternative??

Edited by cherubrock74

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×