vitofun Posted June 9, 2008 Share Posted June 9, 2008 Hi, everytime my clients order something, they complete the order and choose 2Checkout as payment, then they are redirected to "cart.php?a=complete" and see this message "Please wait while you are redirected to the gateway you chose to make payment..." Then, they are supposed to be redirected to the 2CO payment form, but instead of that they see this page "knowledgebase.php?action=search" But, if they try to see their pending invoices, and they try to pay them from their pannel, they are correctly redirected from viewinvoice.php?id=29 to the 2CO form. So the problem seems to appear only when the user follows the classic shopping process, choose a product\order\login\choose paymeny\wrong redirect Any suggestions are welcome 0 Quote Link to comment Share on other sites More sharing options...
vitofun Posted June 9, 2008 Author Share Posted June 9, 2008 Another clue, I have the 'Auto Redirect on Checkout' activated and I have three payment options in the following order: 1.- 2CheckOut 2.- Bank Transfer 3.- MoneyBookers I've activated the option "Select to automatically redirect the user to the invoice" temporarly, but It would be great to use the "Select to automatically redirect the user to the gateway" option without a problem. Thanks 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted June 11, 2008 Share Posted June 11, 2008 I think it's something to do with the form you are submitting, instead of submitting the sale info, the script is submitting the KB search form. It's ages since I had the same problem, but in short there's a bit of javascript that controls the form submitting, theres a part of the code that looks like this: [0] Change the 0 to 1 and it should work. 0 Quote Link to comment Share on other sites More sharing options...
vitofun Posted June 11, 2008 Author Share Posted June 11, 2008 thanks D9Hosting, the solution is also confirmed by Matt here http://forum.whmcs.com/showthread.php?t=11016 Update As they suggest I edit this file: /templates/folder/forwardpage.tpl and change this line: document.forms[0].submit() For this one: document.forms[1].submit() And now it works great 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.