Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Undefined" appears under images


papagino

Recommended Posts

Posted

That's actually caused by updating the jQuery files. The newer versions fixed a bug that shows "undefined" when the image title is blank. You can fix this by modifying BXGallery or by changing the code to add the product name as the image title. To do the latter, change this code in catalog/product_info.php

 

		  $pi_entry .= '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $pi['image']) . '</a>';

to this

 

		  $pi_entry .= '" title=" ' . $products_name . ' " target="_blank" rel="fancybox">' . tep_image( DIR_WS_IMAGES . $pi['image'], $product_info['products_name'], null, null, ' itemprop="image"') . '</a>';

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Thanks Jim, that fixed the "undefined" under the image and I now see the product name as the image title.

 

But there is a new problem.. This " [CS10PPM250CA] " target="_blank" rel="fancybox">" now appears on top of the image???

(CS10PPM250CA) is the "Products Model")

 

Any ideas on how to fix this new problem?

 

Cheers

 

Daniel

Posted

It's probably due to the product model number being added to the product name. Try replacing $products_name with $product_info['products_name'] in that line.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Archived

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

×
×
  • Create New...