News:

Looking for documentation? Take a look on our wiki

Main Menu

How to open a popup window for terms of service?

Started by ZX81, January 18, 2012, 22:33:43 PM

Previous topic - Next topic

ZX81

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?

Venkko

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.
www.pikkukoala.fi (J 1.5 & VM 1.1.5)
www.lastentavarat.fi (J 1.5.23 & V2.0.0)