donate button to open in new browser

1 year 9 months ago #650
Topic Author
Kevin Cope's Avatar
Posts: 1
donate button to open in new browser

Hi
Is it possible to have the submit button open in a new browser (blank) as I do not want to lose guests being navigated from my site.

Thank You.

1 year 9 months ago #651
Eugene's Avatar
Posts: 512
donate button to open in new browser

Hi Kevin,
You have to add _blank attribute to the form which might be performed via template override.
1. Copy this file /plugins/content/jmb_donation/layouts/form_paypal.php and paste it into /templates/[YOUR_TEMPLATE_NAME]/html/plg_content_jmb_donation/layouts/ folder

2. Open form_paypal.php file and find this line:

<form class="jmb-donation-form-paypal uk-form form-inline" action="https://www.paypal.com/cgi-bin/webscr" method="post">
You need to add <strong>target="_blank"</strong> tag to the form as below:
<form class="jmb-donation-form-paypal uk-form form-inline" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">

Save and try what's happened. The donation form should be opened in new tab.


Like our extensions and support?
Add your voice to the JED listing with a 100 score review:: bit.ly/2ciJBqC
Thanks!
Last edit: 1 year 9 months ago by Eugene.

You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+2). but not limited. Our staff will be pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days. In case of free extensions we do the best to develop and maintain them either, but their support is not necessary.

Product Latest Update