New Zenner
- Join Date:
- Sep 2007
- Posts:
- 3
- Plugin Contributions:
- 0
How to: Larger Image Pop-up Size for Product Info
The size and placement of the product image pop-up / popup window in the product info page appears to be hardcoded to 100x100 pixels.
/includes/modules/pages/product_info/jscript_main.php
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
On the above line one can change the size, position, scrollbars and other attributes of the image pop-up window.
Also, putting the file in the override dir:
/includes/modules/pages/product_info/TEMPLATE/jscript_main.php
did did not work for me. I had to overwrite the original file.
There is a resize function in
/includes/modules/pages/popup_image/jscript_main.php
but that was not being called for some reason. If it is working, then one can probably make adjustments there instead.
/Robert