WPCharitable
Forum Replies Created
-
Hi wpler,
How did you go with translating the strings?
Cheers,
Ericp.s. Since the plugin is working as expected for you now, would you mind updating your rating for the plugin? The ratings make a big difference to us. 🙂
Cheers,
EricGlad it’s working as expected for you!
All the text/strings are translatable. The easiest way to translate them is using the Loco Translate plugin. You can also use a program like Poedit to create a translation.
Cheers,
EricI’m sorry to hear you had problems with the settings & widget on multisite; I would love to help you out with any problems you’re encountering since both the widget & settings should work fine on multisite. I personally test the plugin on multisite extensively and have not noticed any issues.
Can I help you resolve this issue in your site? Feel free to reply here or get in touch via our support form.
Cheers,
EricHi Sara,
That snippet of code will add a “National ID Number” field to the donation form, and it will store the value in the database, but the value will not be shown in the backend yet. Since you’re probably wanting to collect something other than a “National ID Number”, here is a quick tutorial on changes to make.
Let’s say you want to collect the name of the donor’s organisation. This bit:
$fields[ 'national_id_number' ] = array( 'label' => __( 'National ID Number', 'your-namespace' ), 'type' => 'text', 'priority' => 24, 'value' => $form->get_user_value( 'donor_national_id_number' ), 'required' => true, 'data_type' => 'user' );There are three changes to make there:
$fields[ 'national_id_number' ]– change this to$fields[ 'organisation' ].__( 'National ID Number', 'your-namespace' )– change this to__( 'Organisation', 'your-namespace' )$form->get_user_value( 'donor_national_id_number' )– change this to$form->get_user_value( 'donor_organisaton' )
The result:
$fields[ 'organisation' ] = array( 'label' => __( 'Organisation', 'your-namespace' ), 'type' => 'text', 'priority' => 24, 'value' => $form->get_user_value( 'donor_organisation' ), 'required' => true, 'data_type' => 'user' );Obviously, just change “organisation” into whatever information you want to collect.
In terms of how to integrate this, see https://github.com/Charitable/library#how-to-use-the-code-snippets for a few different options.
Hope that helps!
Cheers,
EricYes, it’s definitely possible to add new fields using small snippets of code. For an example, see https://github.com/Charitable/library/blob/master/donation-form/collect-national-id-number.php
If you need a hand adding your field, I would be happy to help. Just let me know what field you want to add.
Cheers,
EricHi Sophia,
Could you get in touch via our support page so I can follow up with you about this? I’m not sure why this would be happening.
Cheers,
EricHi Sophia,
There are definitely ways to change the way campaigns look; it depends on the look and feel you are after.
If you like the examples in our showcase, you may be interested in using our theme, Reach: http://demo.wpcharitable.com/reach/
Cheers,
EricNot yet, though that’s definitely something we’re planning to support through an extension at some point.
Cheers,
EricI’m going to mark this as resolved, but @supermadujackie, if you’re still having problems with this please don’t hesitate to post back here.
Cheers,
EricThank you @psenechal. Really looking forward to seeing what you create with Charitable + Ambassadors.
@supermadujackie are you still having any problems with this?
Cheers,
EricSo glad to hear that you have enjoyed the Charitable experience so far!
Cheers,
EricThe easiest way to add it is with a single line of code:
add_action( 'charitable_campaign_content_before', 'charitable_template_campaign_progress_bar', 5 );This will insert the bar right before the block of stats about the campaign.
Cheers,
EricThe progress bar is displayed in the campaigns shown through the
[campaigns]shortcode. Currently it is not added to the individual campaign pages, though I can put together an example of how to add it with code if that’s what you’re looking for.Cheers,
Eric