Page 1 of 1

Make Terms and Conditions popup resizeable

Posted: Fri Jul 06, 2012 10:08 am
by RichWendrock
Please make the popup layer for Terms and Conditions resizable. The wording in our Term and Conditions is long, it would be more user friendly for the shopper to be able to resize the popup window for easier viewing.

Re: Make Terms and Conditions popup resizeable

Posted: Mon Jul 09, 2012 7:03 am
by jmestep
I have done that in the past, but can't remember the site- they had a really, really long TOC. I believe I just used css to do it.

Re: Make Terms and Conditions popup resizeable

Posted: Mon Jul 09, 2012 8:05 am
by RichWendrock
Another problem I ran into is trying to use the same formatting in the popup agreement as that used in the confirmation email. It did not work because the popup window is too narrow. The order confirmation email sizes the sections at 640px. Trying to display the same code in the popup makes the text exceed the width of the popup. That is what prompted my feature request. A better enhancement is to also add a width and height field to the Configure Store / Order Settings section so the popup window can be sized to display the width of the document. If we can control the size of the popup window for the terms and conditions, then the code to display the terms and conditions would work for the popup and the confirmation email. Thus eliminating the need to keep the terms in two places.

Re: Make Terms and Conditions popup resizeable

Posted: Mon Jul 09, 2012 9:23 am
by david-ebt
You should be able to control both the width and the height of the popup using CSS. The default CSS also sets up scrolling if the terms are too large.

Take a look at these CSS tags in your theme:

.modalPopup (should set the width of the terms popup)

.modalPopupText .modalPopupScroller (should set the height and the turns on scrolling)

Re: Make Terms and Conditions popup resizeable

Posted: Mon Jul 09, 2012 10:09 am
by RichWendrock
That is a workaround but it forces all popups to the same dimension. Each popup should be sized individually through the control panel. Or at least use a different CSS class name for each popup so a webmaster can manage the popup dimentions through the theme, as you suggest. We need to simplify the upgrade process. It is getting to the point that I must keep a log of all the modifications we have made to the shopping cart. It makes the upgrade process more reliable.