[MOD] - Use Fancybox instead of Thickbox
28 posts
• Page 1 of 2 • 1, 2
[MOD] - Use Fancybox instead of Thickbox
To use Fancybox instead of Thickbox (1.3.4 or greater):
1. DOWNLOAD: v1.3.0 version of fancybox
2. Unzip "fancybox" folder from the zip file and upload it to your FTP location under:
"catalog/view/javascript/jquery"
Now you should have a folder path like this:
catalog/view/javascript/jquery/fancybox/*.*
There should be 4 js files and 1 css file and many png files inside the folder.
3. EDIT: catalog/view/theme/YOURTHEME/template/common/header.tpl
4. FIND:
5. REPLACE WITH:
That is all that needs to happen. Now all images that were previously thickbox should be fancyboxed and have the left/right arrows for going through all additional images.
thx to joop for the corrections.
1. DOWNLOAD: v1.3.0 version of fancybox
2. Unzip "fancybox" folder from the zip file and upload it to your FTP location under:
"catalog/view/javascript/jquery"
Now you should have a folder path like this:
catalog/view/javascript/jquery/fancybox/*.*
There should be 4 js files and 1 css file and many png files inside the folder.
3. EDIT: catalog/view/theme/YOURTHEME/template/common/header.tpl
4. FIND:
- Code: Select all
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" />
5. REPLACE WITH:
- Code: Select all
<script type="text/javascript" src="catalog/view/javascript/jquery/fancybox/jquery.easing-1.3.pack.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.0.pack.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.0.css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
$("a.thickbox").attr('rel','group');
$("a.thickbox img").parent().fancybox({
'overlayShow' : true,
'speedIn' : 600,
'speedOut' : 500,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'easingIn' : 'easeOutBack',
'easingOut' : 'easeInBack'
});
});
</script>
That is all that needs to happen. Now all images that were previously thickbox should be fancyboxed and have the left/right arrows for going through all additional images.
thx to joop for the corrections.

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18200
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [MOD] - Use Fancybox instead of Thickbox
Whats the difference of Fancy vs Thick?
-

The Alchemist - Posts: 300
- Joined: Sun Nov 22, 2009 3:04 am
Re: [MOD] - Use Fancybox instead of Thickbox
The Alchemist wrote:Whats the difference of Fancy vs Thick?
www.fancybox.net/
http://jquery.com/demo/thickbox/

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18200
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [MOD] - Use Fancybox instead of Thickbox
got this working on 1.3.2,
made all the changes q was talking about except that they needed to be applied to the layout.tpl instead.
made all the changes q was talking about except that they needed to be applied to the layout.tpl instead.
Last edited by Qphoria on Mon Mar 01, 2010 1:03 am, edited 2 times in total.
Reason: You've been here long enough to know how to use the code tags. Use them!
Reason: You've been here long enough to know how to use the code tags. Use them!
- nzjollyroger
- Posts: 54
- Joined: Sun Nov 15, 2009 9:26 pm
Re: [MOD] - Use Fancybox instead of Thickbox
It works great!
- supernemito
- Posts: 6
- Joined: Fri Mar 26, 2010 2:52 am
Re: [MOD] - Use Fancybox instead of Thickbox
Works great! Just be mindful that the jquery versions have now been updated so if you download version v1.3.1 version of fancybox, you will have to update the version numbers in the code
should read
<script type="text/javascript" src="catalog/view/javascript/jquery/fancybox/jquery.easing-1.3.pack.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.0.pack.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.0.css" media="screen" />
should read
<script type="text/javascript" src="catalog/view/javascript/jquery/fancybox/jquery.easing-1.3.pack.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.1.css" media="screen" />
........................................................................
http://www.basicsdesignerclothing.co.uk
........................................................................
http://www.basicsdesignerclothing.co.uk
........................................................................
-

basics - Posts: 10
- Joined: Fri Mar 26, 2010 8:44 am
Re: [MOD] - Use Fancybox instead of Thickbox
Yea, thats why I specifically mention 1.3.0 but you got the right idea

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18200
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [MOD] - Use Fancybox instead of Thickbox
Qphoria,
I noticed that on your website you have implemented a popup using the fancybox. I believe it now has an announcement about your modules compatibility with the latest version of the OC.... Is there a way/module to do that?
Thanks in advance!
I noticed that on your website you have implemented a popup using the fancybox. I believe it now has an announcement about your modules compatibility with the latest version of the OC.... Is there a way/module to do that?
Thanks in advance!
- VladZablotskyy
- Posts: 25
- Joined: Tue Oct 06, 2009 7:47 pm
Re: [MOD] - Use Fancybox instead of Thickbox
VladZablotskyy wrote:Qphoria,
I noticed that on your website you have implemented a popup using the fancybox. I believe it now has an announcement about your modules compatibility with the latest version of the OC.... Is there a way/module to do that?
Thanks in advance!
Here is the module: viewtopic.php?f=23&t=17427 (available only at http://osworx.net)
EU-Buttonlösung EU-Cookies OpenCart Rechtskonform
LiveSupport (Chat) Deutsches OpenCart / OCIE Forum
http://osworx.net :: Installation & Update Services for OpenCart, Custom Development
Common modules - Payment modules - Shipping modules - Dt. Sprachpaket
LiveSupport (Chat) Deutsches OpenCart / OCIE Forum
http://osworx.net :: Installation & Update Services for OpenCart, Custom Development
Common modules - Payment modules - Shipping modules - Dt. Sprachpaket
-

OSWorX - Global Moderator
- Posts: 1887
- Joined: Mon Jan 11, 2010 2:52 pm
- Location: Austria
Re: [MOD] - Use Fancybox instead of Thickbox
I know that this thread is a bit old now but tonight I added this nice effect to my site and it is looks good. However the pop up terms and conditions no longer ... err.... pop up! Instead it opens a plain web page.
How can I fix this please?
I am using 1.4.9.1
Thanks
robster
How can I fix this please?
I am using 1.4.9.1
Thanks
robster
I know my place...!
- robster
- Posts: 373
- Joined: Tue Jul 13, 2010 12:08 pm
Re: [MOD] - Use Fancybox instead of Thickbox
robster wrote:Any takers on this please?
robster
Hey robster,
I was having the same problem as you. If you go to this thread http://forum.opencart.com/viewtopic.php?f=23&t=11323&p=61729, and follow steps 7, 8, and 9 then the fancybox will work for your terms & conditions, however, the text within the fancybox is center aligned despite the fact this is in the code..
- Code: Select all
<style type="text/css">
div#fancybox-inner { text-align: left; }
</style>
If you figure out how to get the text left-aligned let me know.
Plus, there is probably an easier way to get this done because if you already use the fancybox MOD, and then you follow steps 7, 8, and 9 from the link above, you are basically going to have 2 code sets for fancybox. I don't think it's necessary to have two though I'm not sure...I haven't been able to get it to work trying to merge both code sets together. If you figure that one out as well let me know.
- HTMLCSSNoob
- Posts: 160
- Joined: Thu Aug 19, 2010 11:53 pm
Re: [MOD] - Use Fancybox instead of Thickbox
Hi and thanks for the pointer.
I did 7, 8 and 9 and it all works perfectly - text is to the left on mine!
www dot g18crafts dot com
Cheers
robster
I did 7, 8 and 9 and it all works perfectly - text is to the left on mine!

www dot g18crafts dot com
Cheers
robster
I know my place...!
- robster
- Posts: 373
- Joined: Tue Jul 13, 2010 12:08 pm
Re: [MOD] - Use Fancybox instead of Thickbox
I have changed to Fancybox and it works fine. Now I need to add a link on the product page so that a single image will pop up in a fancybox. You can see the page here: www.hippo.is
I have added this to product.tpl:
<tr>
<td><a id="image" class="thickbox" href="catalog/view/theme/darkwood/image/size_women.png">
Stærðartafla</a><br />
</td>
</tr>
But this is not working for me. It only opens the image in the same window. Any help will be great.
Thanks.
I have added this to product.tpl:
<tr>
<td><a id="image" class="thickbox" href="catalog/view/theme/darkwood/image/size_women.png">
Stærðartafla</a><br />
</td>
</tr>
But this is not working for me. It only opens the image in the same window. Any help will be great.
Thanks.
- svabbi
- Posts: 24
- Joined: Wed Sep 23, 2009 10:50 am
Re: [MOD] - Use Fancybox instead of Thickbox
I followed the steps but fancybox is not working for me, images open in a plain page
You want to thank me for my time!
Click here to donate
Click here to donate- marvmen21
- Posts: 364
- Joined: Mon Nov 08, 2010 8:54 pm
Re: [MOD] - Use Fancybox instead of Thickbox
marvmen21 wrote:I followed the steps but fancybox is not working for me, images open in a plain page
My bad, it was due to permissions! Solved.

You want to thank me for my time!
Click here to donate
Click here to donate- marvmen21
- Posts: 364
- Joined: Mon Nov 08, 2010 8:54 pm
Re: [MOD] - Use Fancybox instead of Thickbox
I cannot get it working for the newest opencart version. Can some-one tell me if I have to change anything?
- jeroenzelle
- Posts: 7
- Joined: Mon Jul 23, 2007 7:28 am
Re: [MOD] - Use Fancybox instead of Thickbox
jeroenzelle wrote:I cannot get it working for the newest opencart version. Can some-one tell me if I have to change anything?
Ok got it working! Just be care which code you replace in the header.
The newer opencart versions got other code in the header.
- jeroenzelle
- Posts: 7
- Joined: Mon Jul 23, 2007 7:28 am
Re: [MOD] - Use Fancybox instead of Thickbox
What code in the headre did you replace for your latest version?
I ma guessing you are using 1.4.9.3 or 4?
What fancybox version did you use, it now has updated a lot since Qs original post.
thnaks
Chris
I ma guessing you are using 1.4.9.3 or 4?
What fancybox version did you use, it now has updated a lot since Qs original post.
thnaks
Chris
Regards
Chris
Chris
- webpie it.
- Posts: 374
- Joined: Mon Jan 31, 2011 11:28 am
28 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 12 guests













