Solved

Wordpress transfer to from an external (non-Wordpress page)

Posted on 2014-10-22
4
249 Views
Last Modified: 2014-10-22
We have a situation where the customer has a new wordpress website & want's to use the on-line payment processing from the "old" (non-wordpress) site.

My thinking is to modify one of the menu items on the Wordpress site to refer to an absolute url on the old site to get to the payment page.

My question is "getting back".

What I would like to do is after payment processing is complete, have it return to the Wordpress site "main page" & show a Javascript like popup that says something like "Thank you for your payment" with a Close button (or just an X in the upper right).

Is there a generic way to do that without having to know the details of the specific theme, etc.?

Thanks
0
Comment
Question by:Richard Korts
  • 2
4 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40397266
I would be hesitant transferring to a non recognised website for payments.
Why can they not just move the the payment processing to the new site.

As for going back just append the url with an hash that you main page can check on load with some js in the head and if set give the alert

if(location.hash=="paid"){
    alert("Thank you")
}
0
 

Author Comment

by:Richard Korts
ID: 40397290
To Gary,

The existing payment page works & has been live for years, I'm not concerned about that. It uses Authorize.net, in my view one of the best at doing that.

By "hash" you mean like www.somesite.com/#paid?

I have done a little WordPress but I don't know how to insert custom Javascript into a WordPress page. Can you provide reference?
0
 
LVL 58

Accepted Solution

by:
Gary earned 350 total points
ID: 40397314
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 150 total points
ID: 40397339
You can absolutely move the "old" payment page into WordPress by simply taking the code and creating a custom page template for it:

http://codex.wordpress.org/Page_Templates#Custom_Page_Template

Simply create a new PHP file in the theme folder, name it page-payment.php or whatever, and follow the instructions in the Codex to add your own code.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now