Blazin22 Posted July 19, 2011 Share Posted July 19, 2011 Hello everyone sorry to bother you with so many problems lol I have one last issue. When I have my whmcs setup I have in general in order section so after they order they get forwarded to the payment gateway... and when they click pay it sends them to my knowledge base any idea why? I got it sent to send user to invoice for now... I'm using latest whmcs licensed blazinhosting.net/whmcs with a custom theme. Kind Regards. Any help would be appreciated when a customer wants to hit pay it sends them to the knowledge base when its suppose to send them to the payment gateway. 0 Quote Link to comment Share on other sites More sharing options...
multisoft Posted July 20, 2011 Share Posted July 20, 2011 WHMCS Admin Area >> Setup >> General Settings >> Ordering >> Auto Redirect on Checkout 0 Quote Link to comment Share on other sites More sharing options...
Blazin22 Posted July 20, 2011 Author Share Posted July 20, 2011 Even when I have it to auto redirect to payment gatewhen when they click buy they get sent to my knowledge base.... 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted July 20, 2011 Share Posted July 20, 2011 open your forwardpage.tpl file from your template and change document.forms[0].submit() to document.forms[1].submit() 0 Quote Link to comment Share on other sites More sharing options...
Blazin22 Posted July 20, 2011 Author Share Posted July 20, 2011 Thanks for replying sparky but my template that contains forwardpage.tpl contains already this coding. <br /><br /> <p align="center">{$message}</p> <p align="center"><img src="images/loading.gif" alt="Loading" border="0" /></p> <p align="center">{$code}</p> <form method="post" action="{if $invoiceid}viewinvoice.php?id={$invoiceid}{else}clientarea.php{/if}"></form> <br /><br /><br /> {literal} <script language="javascript"> setTimeout ( "autoForward()" , 5000 ); function autoForward() { document.forms[1].submit() } </script> {/literal} Any further ideas? I still have it set to forward the user to invoice for now but when I had it to forward to payment gateway they got sent to knowledge base, when they clicked pay now and I even tested and I did too. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted July 20, 2011 Share Posted July 20, 2011 If you have 2 forms in your header then change that 1 to 2 Whats your url so that we can check? 0 Quote Link to comment Share on other sites More sharing options...
Blazin22 Posted July 21, 2011 Author Share Posted July 21, 2011 (edited) http://www.blazinhosting.net/whmcs sir. for now gateway to point to invoice but when I had it on forward to payment gateway like I said when they click pay it sends them to knowledge base. Edited July 21, 2011 by Blazin22 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted July 21, 2011 Share Posted July 21, 2011 You have 3 forms above the one that needs to redirect so you need to change the number in that line I told you about earlier to 3 and it should work for you. It would be alot easier if that had an ID tag for the redirect form to save this type of hassle. 0 Quote Link to comment Share on other sites More sharing options...
Blazin22 Posted July 21, 2011 Author Share Posted July 21, 2011 Okay, I changed it to 3 sir but can you tell me why do you say 3 forms what is a form? exactly... is it the number of payment modules I have? or something different... I changed it to 3 and tested a order with paypal and it dident seem to do it : D i put it to forward to payment gateway and it went to paypal correctly now instead of knowledge base will try others can you tell me what a form is tho sir? lol 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted July 21, 2011 Share Posted July 21, 2011 What is a form? http://www.w3schools.com/html/html_forms.asp As I said you have 3 forms above the redirect form 1) login form at the top of the page 2) login form on the side bar 3) knowledgebase form on the sidebar Then the next form when it gets to the checkout page is form 4 the numbers in the java code start from 0 so that is why you would need "3" for your 4th form 0 Quote Link to comment Share on other sites More sharing options...
Blazin22 Posted July 21, 2011 Author Share Posted July 21, 2011 Thanks sparky, you solved my issues. ! Great support, thanks for you're insight. 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.