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

product image zoom

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-27-2016, 08:10 AM
 
Mariusz Mariusz is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 55
 

Arrow product image zoom

Currently, the zooming capabilities takes the uploaded image size as the regular width.

We have been trying to edit with CSS to make sure the max width of the zoomed images is a percentage of the browser size (to prevent scrolling).

However, the zoom is controlled with javascript. Is there a way to edit this?
__________________
X-Cart
Version 4.5.4
Version 5.1.11
Version 5.2.15 x3
Reply With Quote
  #2  
Old 10-27-2016, 09:06 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: product image zoom

In X-Cart 5.3.x the file that controls the zoom function is this one:
customer/product/details/controller.js

You should create a custom module that will decorate the \XLite\View\Product\Details\Customer\Page\APage and replace the link to the default controller.js file with a link to your custom js file added by that module.

For documentation for developers please refer to this website:
http://devs.x-cart.com/
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
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 05:12 AM.

   

 
X-Cart forums © 2001-2020