Matheus Martins
Forum Replies Created
-
Forum: Plugins
In reply to: [GiveWP - Donation Plugin and Fundraising Platform] Customizing EmailsHi, @callerpatty.
I’m glad you reached out. I can certainly help you.
To change the standard text, you can navigate to donations > settings > emails and change it over there. Are there changes you would like to make that are not possible and that’s why you are editing other files?
You can upload your code to Github and share the link here so we can test if it comes to it. However, the best course of action would be to use the email templates available and change the text according to your needs.
Please let us know if you have further questions or need additional assistance!
Hi, @kamig478.
I’m glad you reached out. I can certainly help you.
When I access your form, I can see there was a 500 error happening.
Typically, this error means some broken code is causing your site to crash. It is a WordPress system-generated message that means something has caused a PHP fatal error. Whenever you see that message, a more detailed error log has been sent to the main admin email address (which you can configure at Settings > General in the main WordPress settings).
Check that email, and then pass along any error messages you are receiving so we can help. Every time you see that error, it sends another email. If you need to, you can trigger a new email to be able to see the error message again.
If you don’t see that error in your email (WordPress emails are notoriously unreliable that way), you’ll need to ask your host for the error logs. They will be able to send you a complete record of the errors on your site. Once they provide you with this file, send it to us, and we will be able to identify the issue and move towards a resolution for you.
Also, please send along your System Info.
Navigate to Donations –> Tools –> System Info (tab) and click the button to “Get System Report” and copy/paste that in your reply here.
That will give me some more context to be able to help.
Your success with online donations is our number one priority. Looking forward to helping you get to the bottom of this!
Hi, @nameless_dream.
Glad you reached out. I can help you with that.
The error you are facing is usually related to something wrong with the authentication or the privileges of your account. The first thing I’d try to do is disconnect and reconnect your PayPal account.
If it didn’t work after that, I’d reach out to PayPal so they can investigate why this error is showing up.
Please let us know if you have further questions or need additional assistance!
Hi, @martatm.
We found what is happening.
I spent some time trying to find out what might be going on and I think the issue you are facing is that the text on the classic form won’t be translated if the form was created before the translation.
In this case, you should translate the text before, and only then create a classic form. Can you try that?
We discussed it here https://wordpress.org/support/topic/translate-100-secure-donation-in-the-footer/#post-17100230.
Looking forward to helping you get to the bottom of this!
Hi, @azael2k.
No, it’s not for you only. Actually, this is an issue that we will need to address soon.
Meanwhile, the workaround is to translate the fields before creating the form.
Please let us know if you have further questions or need additional assistance!
Hi, @azael2k.
I spent some time trying to find out what might be going on and I think the issue you are facing is that the text on the classic form won’t be translated if the form was created before the translation.
In this case, you should translate the text before, and only then create a classic form. Can you try that?
I will run some more tests and report it to the development team if a bug is found.
Looking forward to helping you get to the bottom of this!
Absolutely! And if we ever find out this is a rela bug, rest assured that we would run to solve, ha!
Have a great day, Loren! 🙂
Hey, @tasksdoneright.
I’m happy to know it’s working now. If you need further help with it, we are happy to help.
About what your host said, I doubt that something in GiveWP would point to a HTTP site and not a HTTPS because every script from GiveWP uses the same protocol your site uses. If your site is running on HTTP, GiveWP will use HTTP, and if you use HTTPS, GiveWP will use HTTPS – bear in mind that it won’t work when using HTTP.
In addition to that, if this was a widespread issue, I think we would get flooded with requests to modify how requests are created in our end, and it’s not happening.
It looks more like a configuration issue when the site was created, not changing all the URLs to use HTTPS instead of HTTP.
Thanks for using GiveWP! Have a great day.
Hi, @janusdesign.
I’m glad you reached out. Let’s find out what is going on.
We saw this issue in the past and it was related to how the theme was handling the templates on the website. So, the first thing we need to check is your theme.
To do so, I encourage you to switch your theme and choose another default one. For example, you could use a Twenty Twenty Two theme (https://wordpress.org/themes/twentytwentytwo/) to check if the issue persists.
If it does persist, then the issue won’t be in your theme. However, if the issue is gone, then it will be a theme problem. And if it’s a theme problem, I’d encourage you to reach out to the theme developer so they can provide a fix for you.
Looking forward to helping you get to the bottom of this!
Hi, @joethedev.
I’m glad you reached out. I can give you a starting point.
To do what you want to do, you will need to use some CSS code to hide the field and a trick using Loco Translate to modify the wording.
- Using CSS to hide the field
The Classic template loads in an iframe, to make it more resistant to changes made in the theme’s CSS. That’s helpful for avoiding theme conflicts, but makes customizing the style of it a bit more difficult. There are two PHP code snippets in our Snippet library that will help with that process.
The first is for small changes, and adds some style inline to the donor dashboard or the multi-step donation form: https://github.com/impress-org/givewp-snippet-library/blob/master/form-customizations/css-customizations/style-givewp-iframes.php
Please note that you’ll need to change line 14 to ‘give-classic-template’
Also, you need modify lines 16-26 with your own CSS.
The other is for enqueueing your own CSS completely via a custom stylesheet: https://github.com/impress-org/givewp-snippet-library/blob/master/form-customizations/css-customizations/enqueue-style-for-givewp-iframes.php
On line 19 of the above file you’ll have to change it to ‘give-classic-template’.
If you need assistance implementing custom PHP code on your website we have this guide:
https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/Please note that this code snippet is provided as an example of how you can extend GiveWP with code. It’s up to you to implement and customise it to your liking. We cannot support custom code on your website, only the code we create and distribute.
2. Loco Translate to change the wording
Loco Translate facilitates this process because you can create a custom translation for the same language that you are using on your site.
We wrote a tutorial for it here https://givewp.com/documentation/resources/translating-give/translating-givewp-with-loco-translate/#modify-the-wording-using-loco-translate.
Please let us know if you have further questions or need additional assistance!
Hi, @azael2k.
I’m glad you reached out. I can certainly help you here.
The GiveWP does not impose any limits to the emails, but sometimes your server settings can prevent emails from being generated and delivered.
Email troubles are often hard to diagnose, so we wrote this article to try and help:
https://givewp.com/documentation/core/settings/emails/troubleshooting-common-email-problems/The short version is that you need to confirm WordPress is sending them, and then figure out why they aren’t being delivered.
Most of our users who walk through those steps are able to resolve email issues.
I’d recommend following all the steps there to see if it resolves things. If those steps don’t help, I’m more than happy to hop back in and try to diagnose things with you.
Hi, @cquinones.
It’s been a while since we’ve heard back, and I know troubleshooting needs a little extra time. I’m marking this as resolved for now, but if you still have questions, you can send them along right here, and I’ll be happy to hop back in.
Have a great day!
Hi, @tasksdoneright.
I accessed your site and made a test donation. It worked for me. See the screenshot below:
View post on imgur.com
Am I missing something here? Looking forward to helping you get to the bottom of this!
Hi, @azael2k.
I’m glad you reached out.
I’ve tested the translation using Loco Translate and it worked as expected. For example, I translated the string “100% secure donation” and it worked. See my images below:
Settings: https://imgur.com/a/eHhnC7O
Translation working: https://imgur.com/a/EQRZK37
As far as I can see, this is working. Putting myself in your shoes, I’d ensure I’m syncing the translation files using Loco Translate to make sure I’m using the correct file. Otherwise, it might not work.
Please let us know if you have further questions or need additional assistance!
Hi, @andreayanezhutter.
I’m glad you reached out. I have some recommendations that will help with that issue you are seeing.
The fix here is a bit technical, so I’ll include as much detail as possible, but you may need to reach out to your web developer or web support person to implement these recommendations.
Your issue here is caused by some caching happening somewhere in the process. If you’re unfamiliar with caching, it saves server resources by storing copies of a page, resource, query, or site so that the next visitor’s visit doesn’t trigger a call to the server at all; they get the saved copy. Instead of the site needing to recreate the page from scratch, it sends a copy, allowing it to load faster.
We put together this deep dive into what caching is and how it can cause problems: https://givewp.com/documentation/resources/caching/
Caching works well for speeding up sites, but when a saved copy of the site has sensitive information (like donor info), it’s essential that GiveWP not share that with the next visitor. If GiveWP is not convinced that the browser requesting the data is correct, it defaults to not showing the data.
Caching is handled differently on various sites and web hosts. This could mean a caching plugin, or caching could be in a security solution. Hosting providers also have settings for server-level caching settings, and they can help make adjustments for you there. Most caching solutions have a setting or section for excluding specific URLs or parts of URLs (called “slugs”) from caching. At the very least, you should exclude the following slugs from caching:
/donations/
/donation-confirmation/
/donor-dashboard/*
any page with a donation form on it
Also, the following query strings (if your caching solution has a setting for them):
give-embed=donor-dashboardgive
DonationFormInIframe=1
Your host or the caching plugin/solution can help with that. Some may require a “wildcard” like /donations/* to capture all subdirectories under the /donations/ folder.
Some folks prefer to customize the URLs to their site pages, so you may find that your URLs don’t have the slugs mentioned above, even though they contain the same content. In such cases, we recommend whitelisting the page, not just the slug; that way, the pages with those essential pieces of information are still excluded from caching. This is especially important for URLs of pages with donation forms on them.
One helpful tip: Check in with your hosting provider. Most hosts have caching at the server level, and they will be able to adjust this for you. You can also temporarily disable caching on the site to confirm that the uncached site isn’t showing the problem.
Many security solutions also include caching options, so be sure to give those settings a look.
While fine-tuning the cache falls outside the scope of the support we can provide, your success with online donations is our number one priority, and we’re happy to provide any tips.
This was quite a bit of information to share. If you have any questions about this, let me know. I’m happy to help.