papagino Posted December 22, 2011 Posted December 22, 2011 Hi, I am new here and with OsCommerce. I am currently setting up a store and notice that after I installed “Theme Switcher” I get the word “undefined” under the images on my store. Have a look here: http://miraxsupplements.com/product_info.php?products_id=36 Any ideas on how to fix this? Thanks Dan
♥kymation Posted December 22, 2011 Posted December 22, 2011 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.
papagino Posted December 22, 2011 Author Posted December 22, 2011 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
♥kymation Posted December 22, 2011 Posted December 22, 2011 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.