Commit Graph

7 Commits

Author SHA1 Message Date
Jan Jakes
710f22c94b Fix condition to capture all Woo list opt-outs 2024-06-17 13:15:42 +02:00
Jan Jakes
c20c569b35 Make isWooCommerceSubscribed() private 2024-06-17 13:15:42 +02:00
Miguel Pérez Pellicer
e536c68289 Verify segment 2024-06-17 13:15:42 +02:00
Miguel Pérez Pellicer
e3b1a87f34 Sync AutomateWoo Opt-In when Subscribe event happens. 2024-06-17 13:15:42 +02:00
Rodrigo Primo
d6e0768e1f Change the behavior of the optin checkbox in the Woo checkout
This commit changes the behavior of the optin checkbox that MailPoet
adds to the WooCommerce checkout.

Now the checkbox is not checked by default for logged in users who
already subscribed to a list. Also, users won't be unsubscribed anymore
and have their global status change to unsubscribed if they uncheck the
checkbox.

The only action that is performed after this change is to subscribe
users if they check the checkbox.

This change was implemented both for the normal checkout and the block
checkout.

It was also necessary to remove the AutomateWoo integration that
depended on subscribers being unsubscribed during checkout.

[MAILPOET-4178]
2023-05-30 13:25:24 +02:00
Brezo Cordero
c0ffcbac9b Opt out when subscription unchecked
This commit adds an action when customer unsubscribes to WooCommerce segment on checkout and opt outs Automate Woo customer.

[MAILPOET-4230]
2023-05-15 12:04:24 +02:00
Brezo Cordero
00e5dea5b4 Opt out AutomateWoo customer
This commit adds an action to opt out AutomateWoo customer When MailPoet Subscriber global status changes to unsubscribed.

[MAILPOET-4230]
2023-05-15 12:04:24 +02:00