X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Zoom Window Size (https://forum.x-cart.com/showthread.php?t=71826)

minfinger 04-11-2015 02:28 PM

Zoom Window Size
 
So for my clients site, this window is a little small. What do I need to mod to make this bigger? Or is it a CSS change?

http://i21.photobucket.com/albums/b298/fasterthanyours/LPO_Zoom%20Window.jpg

totaltec 04-13-2015 05:01 PM

Re: Zoom Window Size
 
Can you provide a link? It would be easier to determine if we had something to look at. I'm guessing it is CSS, but it might involve some JS.

tony_sologubov 04-15-2015 06:37 AM

Re: Zoom Window Size
 
I believe, this value is hardcoded in the CloudZoom lib directly.
Have a look at the skins/common/cloud-zoom/cloud-zoom.js file. Search by "cloud-zoom-lens" keyword.

Tony

minfinger 04-19-2015 06:52 AM

Re: Zoom Window Size
 
Tony,

There's no settings in the js for the actual size of the window, just the size of the border and margin.

PHP Code:

/* This is the moving lens square underneath the mouse pointer. */
.cloud-zoom-lens {
    
border4px solid #888;
    
margin:-4px;    /* Set this to minus the border thickness. */
    
background-color:#fff;    
    
cursor:move;        
}

/* This is for the title text. */
.cloud-zoom-title {
    
font-family:ArialHelveticasans-serif;
    
position:absolute !important;
    
background-color:#000;
    
color:#fff;
    
padding:3px;
    
width:100%;
    
text-align:center;    
    
font-weight:bold;
    
font-size:10px;
    
top:0px;
}

/* This is the zoom window. */
.cloud-zoom-big {
    
border:4px solid #ccc;
    
overflow:hidden;
}

/* This is the loading message. */
.cloud-zoom-loading {
    
color:white;    
    
background:#222;
    
padding:3px;
    
border:1px solid #000;



totaltec 04-19-2015 10:12 AM

Re: Zoom Window Size
 
It looks to be tied to the image size. The cloud zoom window is always the same as the image window.

minfinger 04-19-2015 10:17 AM

Re: Zoom Window Size
 
Well that seems very odd. You know when i got to some sites the zoom window is pretty large. I'll pay attention to that on other sites. Guess there's no real way to change it.

totaltec 04-19-2015 04:14 PM

Re: Zoom Window Size
 
Sure there is a way to change it. It's going to take some troubleshooting and testing the Cloud zoom js though.

tony_sologubov 04-30-2015 03:47 AM

Re: Zoom Window Size
 
You can also learn cloud zoom docs in order to determine how to change a lens size:
http://www.starplugins.com/cloudzoom/quickstart

minfinger 05-03-2015 03:28 PM

Re: Zoom Window Size
 
I tried adding in zoomSizeMode:'full' into the css and the js. Neither worked.

totaltec 05-03-2015 05:07 PM

Re: Zoom Window Size
 
Look in default/en/product/details/parts/image-zoom.tpl

Then take a peak in efault/en/product/details/controller.js

I found what you needed there, and got the zoom window to get bigger.


All times are GMT -8. The time now is 10:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.