[Plugin: MailChimp List Subscribe Form] Fixing "Merger variables"
-
I have had a persistent problem with “Merge Variables Included” not working.
By this I mean: when I click in the box indicating that I wish a non-required field be included in the form, it was not being included.
Previously I screwed around making everything required.
Today, after finally upgrading to 1.2.9 I fixed it in the php.
I changed the code at line 86 of mailchimp_widget.php:
foreach($mv as $var) { $opt = 'mc_mv_'.$var['tag']; if (!$var['public'] && get_option($opt) != 'on') { echo '<div style="display:none;">'.mailchimp_form_field($var, $num_fields).'</div>'; } else { echo mailchimp_form_field($var, $num_fields); } }
I grabbed the code from a foreach loop used to count fields (line 73)
Don’t know if this is the best fix. But (knock on wood) it is working for me at the moment.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: MailChimp List Subscribe Form] Fixing "Merger variables"’ is closed to new replies.