Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

katlas

Archived
  • Posts

    16
  • Joined

  • Last visited

Profile Information

  • Real Name
    Kathy

katlas's Achievements

  1. Yup, I had the same problem - a couple of images weren't showing up, and they both had - 's - in the product name -- so, here is what i did to 'fix' the problem: in catalog/product_info.php - line 134 or so (contribs, you know): change 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'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); to 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'], addslashes(addslashes($product_info['products_name'])), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); the javascript wasn't getting it's \ before the ' - and this fixes that (I didn't want to mess with the Stripslashes in tep_image, since it worked fine everywhere else). Hopefully this helps someone - my shop is not quite live, but ready for constructive criticism: http://www.tonsofcoolshit.com Kathy
×
×
  • Create New...