Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Zoom Window Size

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-11-2015, 02:28 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #2  
Old 04-13-2015, 05:01 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 04-15-2015, 06:37 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #4  
Old 04-19-2015, 06:52 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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;

__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #5  
Old 04-19-2015, 10:12 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #6  
Old 04-19-2015, 10:17 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #7  
Old 04-19-2015, 04:14 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #8  
Old 04-30-2015, 03:47 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #9  
Old 05-03-2015, 03:28 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Zoom Window Size

I tried adding in zoomSizeMode:'full' into the css and the js. Neither worked.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #10  
Old 05-03-2015, 05:07 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:54 PM.

   

 
X-Cart forums © 2001-2020