Results 1 to 10 of 3727

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Posts
    64
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by welchyboy View Post
    Sounds great congrats!!! I tried but I was unsuccessful. I have the latest zen cart and lightbox 1.4. I currently have my attribute images setup this way. I go to attribute controller and add a picture at the bottom. The images are in images/attributes/
    This is to have the images change which works on all the products except for one actually. I followed your post and read over it again and again to make sure. Here is what my portion of attributes.php looks like.

    Code:
         if ($products_options->fields['attributes_image'] != '') {
                          $tmp_attributes_image_row++;
    
                          //              if ($tmp_attributes_image_row > PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW) {
                          if ($tmp_attributes_image_row > $products_options_names->fields['products_options_images_per_row']) {
                            $tmp_attributes_image .= '<br class="clearBoth" />' . "\n";
                            $tmp_attributes_image_row = 1;
                          }
    					  
    					  
    					  
    					  
    					  
    					  
    					  
    					  //find large size attribute images. Location must be in /images/large and image name must be image_LRG.ext Mike Scott 070606				
    					$array_filename = split("[/\\.]", $products_options->fields['attributes_image']) ;
    					$filename = $array_filename[count($array_filename)-2];
    					$extension = '.'.$array_filename[count($array_filename)-1];
    					$filename = $filename.'_LRG';
    					$path = DIR_WS_IMAGES . 'large/attributes/';
    					$attribute_image_lrg = $path . $filename. $extension;
    					$selected_attrname = $products_options_names->fields['products_options_name'] . ': '.$products_options->fields['products_options_values_name'];
    					  
    					  
    					  
    					  
    					  
    					  
    $tmp_attributes_image .= '<div class="attribImg"><a href="' . $attribute_image_lrg . '" rel="lightbox[gallery]">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . '</a></div>' . "\n";
                        }
                      }

    I then added a picture into the images/large/attributes folder with the image_LRG.jpg format. I see now difference. I am hoping I am missing something because I would really love for this to work.

    Can I see a link to your site. Do you have any ideas what I could have done wrong?
    With what you posted, it looks like what I did, but if you have something else affecting it like a module I do not have installed, then I don't know what to tell you... here is the staging area I am building the site on, and a product where you can see this in action, so you can see the effect of what I did (this link will only be good for another week or so while I finish building the site before I point the main domain to it):
    http://test.phylliseig.com/index.php...roducts_id=175

    Give me your URL where this is not working for you, and I can take a look at it and see if something jumps out at me. you can PM me if you want.

    K

  2. #2
    Join Date
    Aug 2007
    Posts
    64
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Also, welchyboy, I don't think this lightbox is compatible with your main-image-switch-on-pulldown-change module you have installed. I think you need to choose one or the other way to display your attributes. I think you'd have to write some custom code if you really find it necessary to try to use both. The lightbox needs a straight url in the a tag, it won't work if the url is written out using javascript, which is something the pop-up attributes module does (it's that last line of code I posted where all the link and image magic happens), and that is what I'm seeing on your cornmeal page:

    <a href="javascriptopupWindow('http://www.wpc-consulting.com/~stxmill/index.php?main_page=popup_image_additional&products_image_large_additional=image s/attributes/Stone Ground Cornmeal 5lb 3005.JPG')">

  3. #3
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    OK I understand...I am not able to do the coding and I have come to terms with this and I am OK with having Lightbox for the main images then a pop up image for the attribute images. The majority of them do this however do you have any idea why this is happening...

    http://www.wpc-consulting.com/~stxmi...products_id=15

    If you go and click on an attribute and it switches which is good. Then you try and click to make it larger (the attribute image) some of them I have counted about 5 do not come up with anything. No popup of any kind. Any thoughts on this. If i can get this working then I will be happy.

  4. #4
    Join Date
    Aug 2007
    Posts
    64
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    I'm not using any pop-ups on my site, just Lightbox, so I don't know anything about mixing the popups and the switching attributes on pulldown change, sorry. There might be a thread that talks about doing this where other people have done it and can help.

  5. #5
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    I will look around. Thanks

  6. #6
    Join Date
    Apr 2008
    Posts
    283
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    OK I gave up on the lightbox function with my current mod to have the attribute images replace the main image. But I got to working on why 5 of my products weren't working. I figured out that is has to do with the name of the image. For some reason if is has an apostrophe "granny's" for example for some reason it will mess things up. Not sure why it only did it to a few of them. But with the problem products i renamed the image without the apostrophe and it fixed it. Also I had a few images named with the "&" symbol which also didn't fly so well. So now I am at least able to get all the pop ups to show up when clicked which is a GREAT thing. I am happy. Thanks for all the help. I didn't get everything I wanted but it is functional and I am happy. Again thanks for ALL the help.

  7. #7
    Join Date
    Oct 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Awsome Contribution! Thank you!

    I was able to Install Lightbox successfully the first time . I then went ahead to install Image Handler 2. The uploading of the images with IH2 was a breeze, and the second images show up well on Lightbox. The problem that I am having, is that the IH2 rollover feature does not work. I notice that when I rollover an image I get an error ( on IE ) on the lower left browser window.
    I tried Installing IH2 alone and the hover effect works fine, so it is when combining these 2 contributions when I get an issue.

    Here is a link to one of my test sites. I will greatly apreciate any suggestions or links to find an appropriate solution.

    http://store.fransxm.com/store/

 

 

Similar Threads

  1. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  2. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  3. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  4. File Upload Required addon [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 10 Dec 2011, 03:00 AM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 PM

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