Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with "Extra Images" install


stirnpanzer

Recommended Posts

I have installed extra_images_with_admin1_3, works fine in the admin panel, i can add more images..

 

But the last change in the procedure says to change :

 

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

 

Add After :

if (DISPLAY_EXTRA_IMAGES == 'true'){

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

include (DIR_WS_INCLUDES . 'products_extra_images.php');

}

}

 

But in my /catalog/product_info.php i do not have the } else {

 

so i have made my code as the following :

 

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

</tr>

<?php

if (DISPLAY_EXTRA_IMAGES == 'true'){

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

include (DIR_WS_INCLUDES . 'products_extra_images.php');

}

}

 

but when i click on any item in the store i get the following error :-

 

Parse error: syntax error, unexpected $end in C:\Program Files\xampp\htdocs\catalog\product_info.php on line 256

 

Am i missing something here ???

Link to comment
Share on other sites

You missed the " } else {"

 

Look at what you typed...the instructions said to paste the code after "} else {" but you pasted before that unless there is a typo here. If that's the case, just look around line 256 or try to do it again.

 

Good luck

Link to comment
Share on other sites

You missed the " } else {"

 

Look at what you typed...the instructions said to paste the code after "} else {" but you pasted before that unless there is a typo here. If that's the case, just look around line 256 or try to do it again.

 

Good luck

 

 

the } else { never existed in the first place..... :'(

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...