Ulysses Posted May 9, 2007 Share Posted May 9, 2007 When a client selects the "Bank Transfer" payment option, and fills out all the required forms, he ends up at the viewinvoice.tpl page, with nowhere to go, and no other option than to close the browser page. The options at the foot of the page are Download and Close Window. Close the Window is ok if the page is delivered as a pop-up, but not as a whole page in the "Bank Transfer" order process. I can take out the Close Window and add (say) "Go to home page" etc. This will be ok when viewinvoice.tpl is a full page, but silly when it is a pop-up! Anyone have a brilliant way to get out of this one? :wink: Thanks 0 Quote Link to comment Share on other sites More sharing options...
nitro Posted May 9, 2007 Share Posted May 9, 2007 I've not looked in to this directly, but am imagining it could be addressed by adding an extra check to the viewinvoice.tpl - to see which page the user came from, and adjust the link accordingly. You could use the http_referer variable - but this has issues as a quick web search will reveal. The best way IMHO would be to pass a new variable from the previous page in the "Bank Transfer" process, and check for that in viewinvoice.tpl - if the variable is true then show a link back to home page, otherwise show the close window button by default. 0 Quote Link to comment Share on other sites More sharing options...
Ulysses Posted May 9, 2007 Author Share Posted May 9, 2007 Yes, that would be ideal. Though we took out the Close Window as it was not working anyway. Any magic coding examples you can think of? Thanks a lot 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.