- Posts: 3
- Thank you received: 0
[SOLVED] Payment Plug In Button
- Dan
- Topic Author
- Offline
- New Member
-
Less
More
11 years 3 weeks ago - 11 years 3 weeks ago #43226
by Dan
[SOLVED] Payment Plug In Button was created by Dan
Is it possible to change some of the coding of the payment plug ins? My payment processor (2Checkout) has a coupon option, however it only works if I use the HTML code they provide. I was wondering if it's possible to add it to the existing code on the Membership Pro button so the subscription processes on my site, moving the user from registered to subscriber group, and still utilizes the 2CO code to go to their site and process the checkout utilizing the coupon.
Where in the back end would I locate the plugin code for the checkout button?
Let me know your thoughts!
Zarley
Where in the back end would I locate the plugin code for the checkout button?
Let me know your thoughts!
Zarley
Last edit: 11 years 3 weeks ago by Dan.
Please Log in or Create an account to join the conversation.
- Dan
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
11 years 3 weeks ago #43237
by Dan
Replied by Dan on topic Payment Plug In Button
For anyone that might have a similar issue, I found what I was looking for in the following path.
/components/com_osmembership/plugins
On line 103 of the os_2checkout.php file, simply replace the " www2.2checkout.com/2co/buyer/purchase " with the url portion of the HTML snippet from 2CO's "Buy Now" link.
Once I replaced that and uploaded the php file back to the server, it worked like a charm.
Happy Coding!
/components/com_osmembership/plugins
On line 103 of the os_2checkout.php file, simply replace the " www2.2checkout.com/2co/buyer/purchase " with the url portion of the HTML snippet from 2CO's "Buy Now" link.
Once I replaced that and uploaded the php file back to the server, it worked like a charm.
Happy Coding!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 3 weeks ago #43246
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Plug In Button
Great. Thanks Dan for sharing the code. Could you please post the URL which you have to change here so that someone who doesn't know programming can use it (they won't have to read the document to find URL of Buy Now button).
Regards.
Tuan
Regards.
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.