multimediaarts
Forum Replies Created
-
Yes, the first one worked! Thanks!
Hello Freddie,
Thank you for replying. So I have added the code in the functions file and it’s still hiding the opt-in checkbox when I log-in as a returning customer. The desired outcome is to always show the opt-in checkbox during checkout, even for those customers that may already be subscribed.
The reason why is because we have a cancellation form displayed as a contact form 7 contact form which adds the users into the “inactive” membership in Mailchimp. So if the opt-in checkbox is not showing up, those clients who decide to log-in and make the purchase will remain in the same group of “inactive” members in Mailchimp.
Should I change the return true to return false? Maybe we can make the system believe that the status will always be unsubscribed so that it displays the opt-in checkbox.
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Single Opt-in on WooCommerceHello Freddie,
I ran into another situation with the plugin in regards to this solution listed here. The opt-in checkbox seems to be disabled when customers log-in during checkout and proceed with the payment.
This is bad for us because when people sign up, they get subscribed into a group called “Active Members” in Mailchimp. When they fill out the cancellation form via a Contact Form 7 submission, they get subscribed into a group called “inactive members” which is great! However, if the same person comes back and signs up, they remain in the “inactive members” group because the opt-in checkbox is no longer there because he’s a returning customer. How can we enable the opt-in checkbox at all times during checkout?
Got if fixed! It was the SSL. I guess the code was not linking to the CSS file so everything looked out of order. I have installed Really Simple SSL plugin to fix all https redirects and it works fine now.
I’m having the same issue. I checked the header.php file and it has it as the <body <?php body_class(); ?>> code as well but it’s still showing the mobile menu at the bottom below the footer.
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Single Opt-in on WooCommerceFIXED!!!
Freddie, your code was correct! The only thing it had was the word “integration” was mispelled as “intergration”.
So for anybody else looking for this solution, I obtained the group ID’s from this website: https://stackoverflow.com/questions/33204839/how-can-i-get-interest-groups-from-the-mailchimp-3-0-api
and the code I used is below:
add_filter( 'yikes-mailchimp-checkbox-integration-body', 'yikes_mailchimp_optin_filtered', 10, 4 ); function yikes_mailchimp_optin_filtered( $request_body, $integration_type, $list_id, $additional_vars ) { $request_body['status_if_new'] = 'subscribed'; $request_body['status'] = 'subscribed'; // Interest groups. $active = '9dc56695e6'; $inactive = '5ed969c566'; // Use $intergration_type to check for if ( 'contact_form_7' === $integration_type ) { $request_body['interests'][$active] = false; $request_body['interests'][$inactive] = true; } if ( 'woocommerce_checkout_form' === $integration_type ) { $request_body['interests'][$active] = true; $request_body['interests'][$inactive] = false; } return $request_body; }
Thank you very much for your help Freddie!
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Single Opt-in on WooCommerceHello Freddie,
It looks like the code is only working for the opt-in part, but not for adding them to the groups. I located the group ID from the URL but it was too short (only 5 digits), so I was able to locate it from the Mailchimp API Playground and I obtained the ID’s for both groups (Active & Inactive). This is the forum that helped me obtain those ID’s: https://stackoverflow.com/questions/33204839/how-can-i-get-interest-groups-from-the-mailchimp-3-0-api
I added the group ID’s and it’s not working (I also tried with the ID’s from the URL and no luck). But I know for a fact it’s reading the code because it’s not doing the double opt-in anymore, which is great. But it’s not adding them on their respective groups.
I feel like we’re close, what do you think it could be?
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Single Opt-in on WooCommerceHello Freddie, thank you so much for replying. I believe we’re getting close! I can follow along with your code except for one thing, how does Woo or cf7 override the group?
Basically, Woo is used to enroll subscribers into the group called “active”. And Cf7 is used to enroll subscribers into the group called “inactive”. Currently, If I am in the “active” group and I use cf7 to be in the “inactive” group, I will be in both “active” and “inactive”. Same thing vice versa, let’s say I am currently in group “inactive” and I use Woo to join the “active” group, but I don’t get removed from the “inactive” group and end up in both at the same time.
The ideal thing would be for Woo to only enroll subscribers to the “active” group and remove from any other group the subscriber was previously in. The ideal thing for Cf7 would be to only enroll subscribers to the “inactive” group.
in example:
if ( ‘contact_form_7’ === $intergration_type ) { The only group the subscriber should be in is the group called “inactive” remove from “active” }
if ( ‘woocommerce_checkout_form’ === $intergration_type ) { The only group the subscriber should be in is the group called “active” remove from “inactive” }Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Single Opt-in on WooCommerceAwesome! That did the trick!
The only thing now is that it doesn’t remove the user from the other group the member was in. For example, if the user signs up via woo commerce: they’re added to Group 1. However, if the member decides to fill out the contact form, they get added to Group 2. I need them to only be signed up to either Group 1 or Group 2.
I know it’s doable within the form builder of the plugin under the Submission Settings by choosing the option “Replace: Replace all interest groups with the new ones submitted.”
How can we have this enabled for the integration settings for WooCommerce and Contact Form?