R.Kinkeris Posted April 3, 2013 Share Posted April 3, 2013 Hello, I was wondering if anyone could help me to copy the image gallery in product.tpl page to category -> product-list.tpl. To be more specific, which parts of code I have to copy so all thats under <div id="pb-right-column"> work. Gallerys sample I wish to copy: http://addons.prestashop.com/demo/FO2043.html Thanks for help. Reinis Link to comment Share on other sites More sharing options...
vekia Posted April 3, 2013 Share Posted April 3, 2013 link you pasted is home page of store and i don't know about which gallery you are talking... Can you paste correct link? Link to comment Share on other sites More sharing options...
R.Kinkeris Posted April 3, 2013 Author Share Posted April 3, 2013 Ehh...can't get the wright link. Well I'm talking about the gallery which u can see when u click on any product, for example in that page when you click on iPod Nano or Shuffle at the bottom of the screen. Link to comment Share on other sites More sharing options...
vekia Posted April 3, 2013 Share Posted April 3, 2013 so, you want this gallery in product lists? This is possible, but unfortunately it will be really painful to create it there... Link to comment Share on other sites More sharing options...
R.Kinkeris Posted April 3, 2013 Author Share Posted April 3, 2013 Why very painfull? At the moment i've got so far that I see the cover image and all the small images in product list. Now cant figure out how to make that clicking on image calls the fancybox. Link to comment Share on other sites More sharing options...
vekia Posted April 3, 2013 Share Posted April 3, 2013 i thought that you want this: not fancybox. so in this case you should add fancybox js script into product-list.tpl file and then open all images with: re<a href="image_url" rel="other-viewz" class="thickbox shown" title=""></a> Link to comment Share on other sites More sharing options...
R.Kinkeris Posted April 3, 2013 Author Share Posted April 3, 2013 Yes, that's exactly what I want. And as I couldn't figure out how to copy the exact same thing I'm trying to make something similar by myself. So, while doing that I thought of asking here if someone knows how to copy it. Link to comment Share on other sites More sharing options...
R.Kinkeris Posted April 3, 2013 Author Share Posted April 3, 2013 Ok, thanks for info. Ill try it tomorrow and will report how it went. Link to comment Share on other sites More sharing options...
R.Kinkeris Posted April 4, 2013 Author Share Posted April 4, 2013 (edited) Hmm, I did what you said. Added: <a href="image_url" rel="other-views" class="thickbox shown" title=""></a> with the correct url and the js file. The js file he detects but on click it just opens the image like target="_blank". Maybe it need another js file? At the moment js files from jquery the page loads are: <script type="text/javascript" src="/js/jquery/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="/js/jquery/plugins/jquery.easing.js"></script> <script type="text/javascript" src="/js/jquery/plugins/autocomplete/jquery.autocomplete.js"></script> <script type="text/javascript" src="/modules/blockthemecore/js/jquery.caroufredsel-packed.js"></script> <script type="text/javascript" src="/modules/blockthemecore/js/jquery.touchSwipe.min.js"></script> <script type="text/javascript" src="/js/jquery/plugins/fancybox/jquery.fancybox.js"></script> and some table scripts. Edited April 4, 2013 by R.Kinkeris (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 4, 2013 Share Posted April 4, 2013 can you provide an url to your store (if it is possible) i want to check it Link to comment Share on other sites More sharing options...
Recommended Posts