Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Installed lytebox-effect but problem with new IE8?


Recommended Posts

I have installed lytebox-effect and it works fine with my MAC and my PC using an old version of Internet explorer but when i test it on a new version of IE8 it just pops windows up, can any one help?


using OSC 2.2 MS2 (051113)


Thanks for any help you can give.



my site rcmodelimports.co.uk

Link to comment
Share on other sites

  • 3 years later...

I found that if I make lytebox (or lightbox) the last scripts before </head> in my sts template or product_info.php, the script works. But, my other jquery scripts don't work. If instead, I place lytebox before jquery scripts, the jquery works but lytebox doesn't. Basically, whichever script gets played last before </head> works. I'm using jquery to show product info in tabbed boxes for some (but not all) products. Because I like the tabbed look so well, I'll put up with the lack of a lytebox (or lightbox) effect. It would be nice if both would work, though. Oh, well, time to look into a different method of presenting my product descriptions anyway - I never liked the "click to enlarge" idea.

Steep learning curve? Hell, I don't even know enough to formulate a stupid question!!

Link to comment
Share on other sites

Thanks for the link - SO much to learn.


In the end, I decided to simply not use thumbnails as in the original OSC code - preferring 300px images included in each product's description. That resolves the conflict and makes the site look better, imho. Fortunately, I have few products, so the job isn't huge.

Steep learning curve? Hell, I don't even know enough to formulate a stupid question!!

Link to comment
Share on other sites

  • 1 month later...

somebody can helpwith the right code for lightbox in osc2.3.3? The latest addon I download just open a new window, not a pop up.


I think the code is outdated ;



2_ Insert the following code in the file includes/templates_top.php


<script src="js/jquery-1.7.2.min.js"></script>

<script src="js/lightbox.js"></script>

<link href="css/lightbox.css" rel="stylesheet" />


3_ Add a rel="lightbox" attribute to any link tag to activate Lightbox.



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

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image'], '', 'NONSSL', false) . '" target="_blank" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5"' ) . '</a>'; ?>


in catalog/includes/product_info.php


find :


$pi_entry .= '" target="_blank" rel="fancybox">' .


replace by


$pi_entry .= '"target="_blank" rel="lightbox">' .


I try to fix it but have no popup, just new window.


Thanks for help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...