Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    45
    Plugin Contributions
    0

    Default Adding JQuery Lightbox to additional images

    I am trying to add jquery lightbox (http://code.google.com/p/jquery-lightbox/) to additional images on my shopping cart. I followed all the instructions in here: http://warren.mesozen.com/jquery-lightbox/ but the lightbox is not working. The .js and .css files are correctly included on the <head> section. For implementing the lightbox, I modified the code in includes/modules/MYTEMPLATE/additional_images.php like the following:

    $script_link = '<a href="'.$products_image_large.'" rel="lightbox[images]">'.$thumb_slashes.'</a>';

    I have seen the lightbox modules on download section. They seem to have lot more modifications in them. I am just trying to see if there is a simple way of doing it as shown on the above URLs.

    If anyone has successfully implemented it on zencart, pls let me know.

    Cheers!

  2. #2
    Join Date
    Jan 2006
    Posts
    45
    Plugin Contributions
    0

    Default Re: Adding JQuery Lightbox to additional images

    I got it working now. I forgot to include a piece of javascript. My own fault...

    Just included the following code within the <head> section of includes/templates/MYTEMPLATE/common/html_header.php:

    <script>
    $(document).ready(function(){
    $(".lightbox").lightbox();
    });
    </script>

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Adding JQuery Lightbox to additional images

    Well, what the modules try to do is:
    1. make sure that only a limited of files are altered
    2. make sure the css and js only loaded on appropriate pages only (loaded only when needed)
    3. flexibility (make sure the lightbox can be turned on on many pages (or product types)

    Anyhow, glad you got it worked out for you
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. v151 Additional images popup and jquery
    By delia in forum General Questions
    Replies: 5
    Last Post: 3 Jul 2014, 01:15 PM
  2. Additional images jquery mini-slider --- is it possible?
    By Invizix in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 17 Sep 2012, 12:48 PM
  3. Jquery Slider breaks lightbox on multi images products?
    By moosesoom in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 19 Aug 2011, 09:52 PM
  4. No Lightbox on additional images
    By schwarzes in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Oct 2010, 02:28 PM
  5. No Lightbox on additional images
    By schwarzes in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Oct 2010, 12:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR