Adding PayPal buttons to a DNN page
Nov
2
Written by:
Wednesday, November 02, 2011
I found this fantastic article on John Mitchells blog here http://blogs.snapsis.com/PermaLink,guid,94277650-bd4c-445f-badf-b84646ecc8eb.aspx
We got it working perfectly here http://www.websiteperformancegroup.com/Pricing.aspx
HowTo: put PayPal Buy Now buttons in your DotNetNuke Portal
You can do this with a simple javascript trick.
Step 1. Remove the
tags from your PayPal "Buy Now" code.
Step 2. Add
onClick="this.form.action='https://www.paypal.com/cgi-bin/webscr';
this.form.submit();"
to the buy now input button.
Step 3. Paste what is left into the html module
What it does is change the action for the Form that is already embedded into the DotNetNuke default.aspx page.
Here is an an example:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
onClick="this.form.action='https://www.paypal.com/cgi-bin/webscr';this.form.submit();"
src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 comment(s) so far...
Re: Adding PayPal buttons to a DNN page
I have been reading your blog for the last 3 days and find so much interesting topics here. It really proves that your tutorial was helpful. Thank you so much for sharing and also for the great tutorial! :)
By User Centred Design on
Thursday, February 02, 2012
|