VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ZX81 on January 18, 2012, 22:33:43 PM

Title: How to open a popup window for terms of service?
Post by: ZX81 on January 18, 2012, 22:33:43 PM
Joomla 1.7.3/VM 2.0.0

I have a lengthy terms of service that results in the user having to scroll a long way down the page before the checkout/confirm order buttons appear. I've moved them to a new article and now I want to place a link in the terms of service section. I can easily create a link to the article but this only allows me to open a new window of the same size. I think  popup would work better. I'm not a great coder. I've trawled various forums and think I need to do this with some java script. See below
                       
<script type="text/javascript">
                        window.open ('MY_ATRICLE', 'newwindow', config='height=100,width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no')-->
                        </script>

I've edited the default.php in /htdocs /components /com_virtuemart /views /cart /tmpl and placed the script in the terms of service section. But it doesn't appear to display anything. There are no errors. If I view the html source via firefox I can see the script. It just doesn't seem to be displayed.

Any ideas how to make this work? or what would be the correct way to do this?
Title: Re: How to open a popup window for terms of service?
Post by: Venkko on January 19, 2012, 00:00:21 AM
Hi!

There is forum topic where this has been solved.

http://forum.virtuemart.net/index.php?topic=95361.msg316356#msg316356

I believe that the first method is the one you are trying to build.