Eric Daams
Forum Replies Created
-
Hi @vps108,
I saw your email about this in our support channel and have replied there. Your staging site requires a username & password to access, so best to follow up on this privately via email.
Cheers,
EricHi @ariserrallonga,
I just tested this out on your website. When the donation form is submitted, it makes a request to admin-ajax.php. This request is responding with a
423 Locked
error:The requested resource is currently locked. The lock must be released or proper identification given before the method can be applied.
This is not an error I’ve seen before, but to me it indicates that there may be a general problem with your hosting setup blocking POST requests to admin-ajax.php. I did test a separate POST to your admin-ajax.php URL and it received the same response, so the error is not specifically related to the format of the Charitable request —?it appears to be a more general problem with the server setup.
Cheers,
Eric- This reply was modified 2 years, 5 months ago by Eric Daams. Reason: Formatting
Hi @ariserrallonga,
What is the error that you are getting when attempting to donate from the Netherlands?
Cheers,
EricHi @pagan11460,
You can add extra fields to the donation form using a bit of code. We have a detailed guide to our Donation Fields API available here:
https://www.wpcharitable.com/documentation/donation-fields-api/
For an example, you can check out this code snippet we have created, which shows how to add a new field:
https://github.com/Charitable/library/blob/master/donation-form/register-new-donation-field-1.5.php
You can add code like this using a plugin like Code Snippets.
Cheers,
EricHi @chrishechler,
Charitable doesn’t really provide that. In your case, it sounds like you’re setting up something closer to a crowdfunding-style site. You can do something like that with our Ambassadors & Stripe Connect extensions, though the setup would be that members create fundraising campaigns and then they can link to those, which is?not exactly what you described.
If you have more questions about that possibility, can you reach out to us via https://www.wpcharitable.com/pre-sales-support/?
Cheers,
EricThanks for the review @ingrid2022!
Thanks @sitecrafters! Happy to be able to help. ??
Cheers,
EricHi @sitecrafters,
Sure, happy to help with that! Something like this will work nicely:
#donation-form a { color: #fff; }
Cheers,
EricHi @orlok7734,
I haven’t heard back from you, so I’m going to mark this issue as resolved, but if you need a hand with anything else or have any follow-up questions, I’m more than happy to help.
Cheers,
EricHi @orlok7734,
It sounds like you may not have imported the
wp_charitable_campaign_donations
table. The donation amounts are stored in that table.The best way to migrate Charitable data from one site to another is to copy across the entire database.
Donation and campaign data is recorded across a number of database tables:
- wp_charitable* — All the ones starting with wp_charitable are created by Charitable.
- wp_posts — Donations and campaigns are both stored in this table since they are custom post types in WordPress.
- wp_postmeta — Metadata related to donations and campaigns is stored here.
Also, if you have categorized or tagged campaigns, that is recorded in the WordPress tables:
- wp_terms
- wp_termmeta
- wp_term_relationships
- wp_term_taxonomy
Finally, some donor related data for registered donors is stored in the wp_users and wp_usermeta tables.
Hi @nitin4224,
Sorry again for taking so long to reply. I just responded to your other message too. I’m afraid we cannot help with questions about our premium plugins here on wp.org, so if you still need a hand with this please reach out to us via our support page:
https://www.wpcharitable.com/support/
Cheers,
EricHi @magnus1043,
My apologies for not responding sooner. You may already have found a solution or reached out to our support team, but for others who arrive here wondering the same thing, I’ll explain how to add a donate button with Charitable.
First off, all donations in Charitable are made to campaigns, so a campaign will be needed. Charitable doesn’t have a simple donate button out of the box; instead the donate buttons are shown on the campaign pages or when displaying a set of campaigns in a grid using the [campaigns] shortcode.
When you have set up your campaign, you can find the donation form by viewing the campaign and then clicking “Donate”. You can then use the URL of the donation form page elsewhere in your site to direct people to your donation form. For example:
Whether that displays as a button depends a bit on your WordPress theme. If it doesn’t, you can instead add a donate button shortcode to your website using a little bit of code:
/** * To add a shortcode to display a campaign's donate button, include this function below. * * @param array $atts User-defined shortcode attributes. * @return string */ function ed_charitable_campaign_donate_button_shortcode( $atts ) { if ( ! array_key_exists( 'campaign_id', $atts ) ) { return ''; } // Get the campaign. $campaign = charitable_get_campaign( $atts['campaign_id'] ); // Add the donate modal window to the footer. This is invisible until the button is clicked. add_action( 'wp_footer', function() use ( $campaign ) { charitable_template( 'campaign/donate-modal-window.php', array( 'campaign' => $campaign ) ); } ); ob_start(); // Render the donate button. charitable_template_donate_button( $campaign ); // Load scripts that are required for the modal to work. Charitable_Public::get_instance()->enqueue_donation_form_scripts(); return ob_get_clean(); } add_shortcode( 'charitable_donate_button', 'ed_charitable_campaign_donate_button_shortcode' );
There are a few ways you can add code like this; we’ve written a guide here covering off the various options.
Once you have that code added, you can display a button like this:
[charitable_donate_button campaign_id=123]
Just replace 123 with the ID of your campaign.
One nice thing about the shortcode above is that if you’re setting the donation form to appear in the modal window, that will work automatically too.
Cheers,
Eric- This reply was modified 2 years, 8 months ago by Eric Daams.
Hi @nitin4224,
I’m sorry we never responded to this on here. It looks like your query is about our paid Ambassadors extension. We’re not permitted to provide support for premium plugins here on wp.org, so if you still need a hand with this please reach out to us via our support page:
https://www.wpcharitable.com/support/
Cheers,
EricHi @shenalorlof,
I’m sorry for the delay replying to you. You can give other admin users the ability to create campaigns by giving them the “Campaign Manager” role. This role is similar to an Editor, but allows the user to also create/edit/delete campaigns, view donations, and export reports.
If you only want the users to be able to create campaigns without being able to see donation data or export reports, you can instead use a plugin like User Role Editor to grant the following capabilities:
- edit_campaign
- read_campaign
- delete_campaign
- edit_campaigns
- edit_others_campaigns
- publish_campaigns
- read_private_campaigns
- delete_campaigns
- delete_private_campaigns
- delete_published_campaigns
- delete_others_campaigns
- edit_private_campaigns
- edit_published_campaigns
Cheers,
EricHi @nickmkrtchyan,
We don’t have a currency switcher integration currently, but we do have a plugin that allows you to use different currencies for different campaigns. This means you could have one campaign for USD and another for Euro.
Cheers,
Eric