X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Re-sizing pop-up windows (https://forum.x-cart.com/showthread.php?t=18583)

DonB 12-10-2005 08:43 PM

Re-sizing pop-up windows
 
I need to display my category pop-up windows in full screen because of sub-categories. I've looked over the forum and looks like no one has ran into this situation.

When adding 'Featured Products' the pop-up isn't large enough to display the sub-categories and this makes it difficult to search for products. Same thing for adding 'Coupons'.

Does anyone know what template I can modify so that when a 'category list pop-up' comes up, I can make it show in full view?

This is a pain because in some main categories we go to 4 sub-categories deep.
Example: Business & Industry B2B/Food Service & Retail/Vending & Tabletop Concessions/Beverage & Snack Vending/Snack, Food Machines

When trying to select the bottom sub-category, the window can't be re-sized and you can't see it to select a product.

Don Barrett
X-Cart 3.5.6 Pro (Modified to the max)
New York State Shopping Mall
Unix/Apache Web Server

pauldodman 12-10-2005 11:23 PM

Hi Don,

Take a look at:
skin1/main/popup_help_link.tpl

You will see the controls for the popup window in here.

for example it will have the standard settings like this:
'width=600,height=460,toolbar=no,status=no,scrollb ars=yes,resizable=no,menubar=no,location=no,direct ion=no'

which you can of course change to meet your needs.

Each popup in your site will have its own template, for eg this particular one is used for the help info on CVV.

DonB 12-11-2005 07:57 AM

Thanks Paul....This did the trick!

Don

Quote:

Originally Posted by pauldodman
Hi Don,

Take a look at:
skin1/main/popup_help_link.tpl

You will see the controls for the popup window in here.

for example it will have the standard settings like this:
'width=600,height=460,toolbar=no,status=no,scrollb ars=yes,resizable=no,menubar=no,location=no,direct ion=no'

which you can of course change to meet your needs.

Each popup in your site will have its own template, for eg this particular one is used for the help info on CVV.


georgewf 12-10-2011 04:22 PM

Re: Re-sizing pop-up windows
 
For current x-cart using jquery see /skin/common_files/js/popup_open.js!

function popupOpen(src, title, params) {

// Close existing dialog
$('.popup-dialog').dialog('destroy').remove();

var popup = $(document.createElement('div'))
.attr('class', 'popup-dialog')
.css('display', 'none')
.appendTo('body');

var dialogOpts = {
modal: true,
bgiframe: true,
autoOpen: true,
draggable: true,
resizable: true,
width: ($.browser.msie && parseFloat($.browser.version) < 7) ? '400' : 'auto',
height: ($.browser.msie && parseFloat($.browser.version) < 7) ? '350' : 'auto',
position: 'center',
maxHeight: 800,
maxWidth: 1400,
zIndex: 5000,
closeOnEscape: false,

vasilis 02-02-2012 11:12 AM

Re: Re-sizing pop-up windows
 
Any tips on how to use popup_open.js ? I need to display a popup window with specific content taken from some smarty variable and then, on closing it, to lead the visitor to a specific url.

thanks


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

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