Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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.

  • 3 weeks later...
Posted

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>

Posted

---------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

  • 9 months later...
Posted (edited)

---------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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...