Jump to content

[SOLVED]fancybox in product.tpl


Recommended Posts

Hi,

 

this so-called problem is given due to the settings of the resolution of thickbox_default image. You could either 

1) Upload larger pictures so they don't get all messed up when you click on the fancybox

2) Set the resolution of thickbox_default to be less than 600x600

3) Edit the product.tpl file and product.js file so that once you click on the fancybox, that the original image occurs

 

I would go with a) or c), but in depends on your knowledge and resources.

Hope this helps

Edited by PSfever.com (see edit history)
Link to comment
Share on other sites

The only solution I see at this point is to edit the TPL/JS file (not sure which one it is) so that it doesn't count with the height of the thickbox picture, but with the height of the original picture. At the same time you ought to change this

.fancybox-image {
max-width: 100%;
max-height:100%;
}
.fancybox-image, .fancybox-iframe {
display: block;
width: 100%;
height: 100%;
} 

into this

.fancybox-image, .fancybox-iframe {
display: block;
width: 100%;
height: auto;
}
.fancybox-image {
max-width: 100%;
}

You should find these in this file http://www.petamour.cz/js/jquery/plugins/fancybox/jquery.fancybox.css

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...