Exnet Posted April 17, 2011 Share Posted April 17, 2011 It used to work, but now when a customer click on "Checkout" button, he's redirected to a page with the invoice : http://www.technirobots.net/clients/viewinvoice.php?id=32 Why is it not working anymore ? "Automatically forward the user to the payment gateway" is checked in the admin panel. Thx for your help 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted April 18, 2011 WHMCS Support Manager Share Posted April 18, 2011 Which option have you selected under Setup > General Settings > Ordering tab? 0 Quote Link to comment Share on other sites More sharing options...
Exnet Posted April 26, 2011 Author Share Posted April 26, 2011 Hi John, sorry for the late reply. I have selected "Automatically forward the user to the payment gateway". 0 Quote Link to comment Share on other sites More sharing options...
Exnet Posted May 2, 2011 Author Share Posted May 2, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
Alireza013 Posted February 26, 2013 Share Posted February 26, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
ikasp Posted February 26, 2013 Share Posted February 26, 2013 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. 0 Quote Link to comment Share on other sites More sharing options...
Thunderlab Posted March 29, 2013 Share Posted March 29, 2013 I believe this solution is a bit more robust:Got it from whmcs support. My "forwardpage.tpl" looks exactly like that, but it still do not forward to paypal page. Someone could help? =) 0 Quote Link to comment Share on other sites More sharing options...
ikasp Posted April 2, 2013 Share Posted April 2, 2013 I got this problem again. Have put a ticket, support has done some testing, but there is no solution yet. 0 Quote Link to comment Share on other sites More sharing options...
harun Posted April 1, 2014 Share Posted April 1, 2014 Instead of; var submitForm = $("#submitfrm").find("form"); use; document.getElementById("submitfrm").submit(); It should work! 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.