Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…

707 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

14 Experts available now in Live!

Get 1:1 Help Now