Jump to content

Bank Transfer > viewinvoice.tpl = dead end


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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