Jump to content

Automatically forward the user to the payment gateway .. but


Exnet

Recommended Posts

The support answered my question, here is the solution to my problem, maybe you'll need it one day :

 

Open the file forwardpage.tpl in your active template folder and try changing the forms[x] variable to 1 less than it currently states so if you currently have a 2 that should be changed to a 1 for example. Then retry it.

Link to comment
Share on other sites

  • 1 year later...

Hi friends. Same problem here on WHMCS 5.0.3 .

I have selected every option in "Auto Redirect on Checkout" but nothing happens and everytime the client orders something , just a simple page is opened that it has written your invoice created but even no link to invoice !

 

The support answered my question, here is the solution to my problem, maybe you'll need it one day :

 

Open the file forwardpage.tpl in your active template folder and try changing the forms[x] variable to 1 less than it currently states so if you currently have a 2 that should be changed to a 1 for example. Then retry it.

 

I tried this fix but still the problem is alive :(

Link to comment
Share on other sites

I believe this solution is a bit more robust:

<div id="submitfrm" class="textcenter">{$code}

 

<form method="post" action="{if $invoiceid}viewinvoice.php?id={$invoiceid}{else}clientarea.php{/if}"></form></div>

 

<br /><br /><br />

 

{literal}

<script language="javascript">

setTimeout ( "autoForward()" , 3000 );

function autoForward() {

var submitForm = $("#submitfrm").find("form");

submitForm.submit();

}

</script>

{/literal}

 

Got it from whmcs support.

Link to comment
Share on other sites

  • 1 month later...
  • 11 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