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

Re-sizing pop-up windows

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-10-2005, 08:43 PM
  DonB's Avatar 
DonB DonB is offline
 

Member
  
Join Date: Mar 2004
Location: Massena, NY
Posts: 22
 

Default 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
Reply With Quote
  #2  
Old 12-10-2005, 11:23 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

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.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 12-11-2005, 07:57 AM
  DonB's Avatar 
DonB DonB is offline
 

Member
  
Join Date: Mar 2004
Location: Massena, NY
Posts: 22
 

Default

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.
__________________
New York State Shopping Mall
version X-Cart Pro 3.5.6 Custom Modified
Status: Re-Launching 01/01/06
Reply With Quote
  #4  
Old 12-10-2011, 04:22 PM
 
georgewf georgewf is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 79
 

Default 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,
__________________
xcart 4.7.12
Reply With Quote

The following 2 users thank georgewf for this useful post:
am2003 (02-02-2012), chris.ath (04-15-2012)
  #5  
Old 02-02-2012, 11:12 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default 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
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 06:20 AM.

   

 
X-Cart forums © 2001-2020