jrthor2 Posted December 31, 2008 Posted December 31, 2008 I just noticed an issue with having quotes in the product name. If you have quotes, the image does not show up on the product info page in IE. In FireFox, it does show. when you view the code, the code looks like this: <a -="" poplin)="" (pc="" coat="" lab="" title="Ladies' 38" href="http://sitename.com/sshscrubs/images/411.jpg" rel="lightbox"> <img width="80" vspace="5" hspace="5" height="80" title=" Ladies\' 38\" Lab Coat (PC Poplin) " alt="Ladies\' 38\" Lab Coat (PC Poplin)" src="images/411.jpg"/> <br/> Click to enlarge I think it's because of <a -="" poplin)="" (pc="" coat="" lab="" that is messing it up in IE. How can I fix this? Thanks!
germ Posted December 31, 2008 Posted December 31, 2008 Click Me I believe the crux of the problem would be in the code in product_info.php: <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], [color="#FF0000"]addslashes($product_info['products_name'])[/color], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
jrthor2 Posted December 31, 2008 Author Posted December 31, 2008 actually, I just fixed it. I believe it was one of the modules I installed for the lightbox effect. I changed <?php echo '<a rel="lightbox" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" title="'. $product_info['products_name'].'">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> to <?php echo '<a rel="lightbox" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" title="'. htmlentities($product_info['products_name']).'">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> and it worked. all I changed was the title tag of the <a> to use htmlentities($product_info['products_name']) and it seems to have worked. Thanks
mycreativewishes Posted January 1, 2009 Posted January 1, 2009 actually, I just fixed it. I believe it was one of the modules I installed for the lightbox effect. I changed <?php echo '<a rel="lightbox" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" title="'. $product_info['products_name'].'">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> to <?php echo '<a rel="lightbox" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" title="'. htmlentities($product_info['products_name']).'">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> and it worked. all I changed was the title tag of the <a> to use htmlentities($product_info['products_name']) and it seems to have worked. Thanks My product names wil show on the home page in the "Whats new here" however, when I click on a catagorie, the product is displayed but the product name wont display. The wierdest thing is that it was showing until I created a new product, then I went to review the new product I see this problem. How can I fix this??? I'm stumped and baffled. Thanks Joe
Recommended Posts
Archived
This topic is now archived and is closed to further replies.