Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Donation - Doesn't work for non-USD

Featured Lock Resolved Issue
Hi,

I'm in the last stages of finalizing our new website for our charity organization. But I have a problem with the donation add-on. For our german site visitors the donation should be in EUR. I have change the templates as described in the documentation to bis the problem with other currency but only if I switch to USD the donate button directs me to the PayPal site, switching to EUR the donate butte just opens my site again.

What do I need to do?

Kind regards,
Stephan

9 Answers

Rifat Wahid Alif - Staff

More than a month ago #Permalink
Hi,
Open the file from the following location /templates/shaper_hope/js/main.js on 198 no line you will get:


var currency = $(".sppb-addon-donation .donation-ammount-wrap").data('currency'),
crncy_code = currency.split(':'),
pid = $(".sppb-addon-donation .donation-ammount-wrap").data('pid'),
this_val = $(this).val(),
amt = this_val.split('$');


replace it with:


var currency = $(".sppb-addon-donation .donation-ammount-wrap").data('currency'),
crncy_code = currency.split(':'),
pid = $(".sppb-addon-donation .donation-ammount-wrap").data('pid'),
this_val = $(this).val(),
cur_code = this_val.slice(0, 1),
amt = this_val.split(cur_code);


- Thanks

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
Hmm, right. I noticed it as well.
Yes, it looks like bug. Really sorry.
Please give us some time, tomorrow I will ask our developer to fix it asap.
----
Temporary you can use PP generator:: https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/donate_step_1/

Stephan Kostial

More than a month ago #Permalink
Thank you, Paul.

Stephan Kostial

More than a month ago #Permalink
Hi Paul,

Works now with the mentioned bugfix. I just had to empty my cache to pull the corrected version.

Sorry for any inconvenience.

Stephn

Paul Frankowski - Staff

More than a month ago #Permalink
I just had to empty my cache to pull the corrected version.


Of what exactly ?

Stephan Kostial

More than a month ago #Permalink
The browser cache. I did the fix in the main.js as mentioned in the documentation but the broser had the unfixed version in the cache. After clearing the cash the fix worked.

sifa

More than a month ago #Permalink
Hi Guys,

I would like to know if the Donate button linked with PayPal button is the safe way to link on the site.
I am not saying it's not, but is it as simple as putting your merchant ID in the donate button and it communicates with papal without any issues like intercepting in middle or something which usually needs dynamic pages to back and forth the communication for secure transaction. I am not a coder but just want to confirm if it is all built with builtin plug and play security i will be very happy and amazed that its' so easy to use by Joomshaper guys.
some clarification on this will give me peace of mind for my site about to launch with donate button.

thanks
Sifa

Paul Frankowski - Staff

More than a month ago #Permalink
Thanks, Noted.
You can also use the Donate button/link using code from PayPal generator.
Which seems to be the most trusted method.


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 144
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 119
Toufiq

Toufiq

Total Accepted Answers: 64
Pavel

Pavel

Total Accepted Answers: 5
Peter Atkin

Peter Atkin

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us