Solved

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

Posted on 2014-10-22
4
258 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 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

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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 viewer will learn how to dynamically set the form action using jQuery.

717 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