Hi, we followed the link and subscribed to your news via the Getwid block and did not get any error. Could you give us step-by-step instructions on how to recreate the issue?
Thanks for following up. I fixed the issue myself by making some code changes in the plugin. Specifcally, i had to change the first_name and last_name to first-name and last-name in the mailchimp block because you guys are passing back first-name and last-name as the field names back to the class. specifcally the code below had to be changed.
this is what your call looked like
first-name=test&last-name=test&email=test%40gmail.com&list_ids=11111111111
Changed code:
if ( isset( $data[ 'first-name' ] ) ) {
$merge_vars[ 'merge_fields' ][ 'FNAME' ] = $data[ 'first-name' ];
}
if ( isset( $data[ 'last-name' ] ) ) {
$merge_vars[ 'merge_fields' ][ 'LNAME' ] = $data[ 'last-name' ];
}
i also had to unset the interests field because mailchimp does not take any blank fields that are not listed as fields on the mailchimp side and since there are no “interest” fields to populate in the getwid block, it had to be unset
if ( empty( $merge_vars[ 'interests' ] ) ) {
unset( $merge_vars[ 'interests' ] );
}
It would be awesome to have these changes in your next update
-
This reply was modified 6 years, 8 months ago by
sodeypunk.
-
This reply was modified 6 years, 8 months ago by
sodeypunk.
Thanks for your reply. We have replicated the issue on our side and we’ll fix it in the next update. Thanks and accept apologies for inconveniences.
Hi @sodeypunk,
We have just released new version of plugin where this issue has been fixed. Also we added option to change position of currency. thank you for collaboration
We’d appreciate if you review Getwid plugin here https://ww.wp.xz.cn/support/plugin/getwid/reviews/#new-post