Jump to content

Joomla+WHMCS Template Help!


TWD-Tony

Recommended Posts

I'll try and make this short 'n sweet... :lol:

 

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????

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated