Eric Daams
Forum Replies Created
-
Lisa followed up with me via email; this issue is related to a bug in Charitable that occurs on some hosting environments. Expect a release out in the next day or two.
Cheers,
EricHi Vijay,
Yes, we should be able to fix that. At least we know where the problem is now π
Could you post your current custom code in a gist at https://gist.github.com?
Cheers,
EricHi @delcasart,
We do occasionally take on custom projects like this, though we’re booked out until March at the moment. Which payment gateway do you need?
Cheers,
EricHi Vijay,
Hmm, I think this may be related to the custom code you’re using for the extra form field. Could you try completing removing that custom code and see if the issue persists?
Cheers,
EricTry this instead:
$options = array(); foreach ( get_posts( $get_post_args ) as $post ) { $options[ $post->ID ] = get_the_title( $post->ID ); }Appreciate the review!
Thanks for the great review Benjamin!
Hi Vijay,
This bit looks wrong to me:
$title_list[] = array(βnameβ => the_title(), βvalueβ => the_title());
Try this instead:
$title_list[ get_the_ID() ] = get_the_title();
Cheers,
EricHi Vijay,
For changing the default text used in the plugin, I recommend the Loco Translate plugin: https://wordpress.org/plugins/loco-translate/
It’s a translation plugin, but one of the benefits is that you can change the default text used in plugins like Charitable into text you’d prefer. To change the text, install and activate the plugin, then go to create a translation for Charitable. You will need to choose your language from the dropdown list, and then you can search for the text you want to change.
Cheers,
EricHi Lisa,
Did the troubleshooting steps I suggested help at all?
Cheers,
EricHi Vijay,
Sure. The only real change needed is to the initial field definition: https://github.com/Charitable/library/blob/master/donation-form/collect-national-id-number.php#L48-L55
Replace it with this for a radio field:
$fields['national_id_number'] = array( 'label' => __( 'National ID Number', 'your-namespace' ), 'type' => 'radio', 'priority' => 24, 'value' => $form->get_user_value( 'donor_national_id_number' ), 'options' => array( '1' => 'Some option', '2' => 'Some other option', ), 'required' => true, 'data_type' => 'user' );For a select, just replace the ‘radio’ with ‘select’.
Note that with the
optionsarray, the bit on the left of the => is the value that would be stored in the database; the bit on the right is what the user sees when they fill out the form. So with the first one, the user seesSome Optionand selects that; the value saved to the database is1.Cheers,
EricYou can use the Donation Stats widget to display the overall amount raised on your site (including # of donors and # of campaigns).
Cheers,
EricHi @xgarrettx,
Would you mind getting in touch via https://www.wpcharitable.com/support/ with login details for your website so I can see what might be going wrong here?
Cheers,
EricOf course, would love to check out the site!
I’ve followed this up with Kenneth over email, but just wanted to confirm here that this issue is fixed in the latest update to our Authorize.Net extension.
Cheers,
Eric