?
Solved

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

Posted on 2014-10-22
4
Medium Priority
?
263 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1400 total points
ID: 40397314
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 600 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
Suggested Courses

770 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