TWD-Tony Posted February 4, 2007 Share Posted February 4, 2007 I'll try and make this short 'n sweet... I own several hosting brands and use WHMCS on a seperate domain for all clients of these brands to use... All the hosting brand website's are powered by Joomla content management system... I though I would try and make the whole signup / payment / support process easier for clients by using the inbuilt Joomla "wrapper" function - which basically places another website inside the Joomla page using a Frame. Everything seems to work well on the 1st site I am converting EXCEPT that when you order something and go through the order process you get to the point where you are shown an invoice with a link to pay via PayPal... I cannot get the "PAY" button to open the paypal site in a new window (or the invoice to open in a new window)? I am fairly certain you are not supposed to use PayPal in a Frame (it seems to work though???) and I am guessing the https would be invalid. I am very new to Smarty templates so my initial (and only) attempt to get this to work was to edit the <form> in viewinvoice.tpl to: <form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}"target="foo" onsubmit="return validateStandard(this)"; "window.open('', '','','foo', ',','width=450,height=300,status=yes,resizable=yes,scr ollbars=yes')">{$gatewaydropdown}</form This didn't work so can anyone point me in the right direction please???? 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted February 6, 2007 Share Posted February 6, 2007 Since this is using JS to open in a new window, did you get any errors? 0 Quote Link to comment Share on other sites More sharing options...
TWD-Tony Posted February 9, 2007 Author Share Posted February 9, 2007 No I didn't get any errors - It just didn't work! I really need a way of getting either the Invoice or PayPal to "break out" of the Joomla wrapper 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted February 9, 2007 Share Posted February 9, 2007 Ok, if you view the source code of that page, do you still see the code, exactly as you put it in? Some WYSIWYG editors will strip some of the JS code. 0 Quote Link to comment Share on other sites More sharing options...
adakist Posted February 10, 2007 Share Posted February 10, 2007 You're not coding it correctly, try something like: <form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}" target="foo" onsubmit="return validateStandard(this); window.open('about:blank', '','','foo', ',','width=450,height=300,status=yes,resizable=yes,scrollbars=yes');"> Although it will just open a blank window... Are you familiar with javascript at all? 0 Quote Link to comment Share on other sites More sharing options...
rickenbacker Posted April 12, 2007 Share Posted April 12, 2007 TWD-Tony, did you ever figure this out? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.