Commit Graph

16 Commits

Author SHA1 Message Date
Rodrigo Primo
63f0ee23fa Cleanup code now that defaultStatus is always false
[MAILPOET-4178]
2023-05-30 13:25:24 +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
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
c67c58709b Unify spacing of declare statements
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Malith Senaweera
a35e0dced4 Accept null opt-in values for in Woo Blocks integration
[MAILPOET-4804]
2022-11-28 11:51:27 +01:00
Rostislav Wolny
a6431678ed Remove backward compatibility for Woo Blocks ExtendRestApi
The new ExtendSchema was introduced in WCBlocks 7.2 which are way older
then we currently want to support.
[MAILPOET-4774]
2022-11-03 15:16:43 +01:00
Rostislav Wolny
7821c5767b Use current namespace for Woo store API checkout schema class
The new namespace is supported from WooCommerce 6.4.0 so we don't need
to support the old namespace any more.
Some users reported issues with BC class aliases provided by Woo.
[MAILPOET-4774]
2022-11-03 15:16:43 +01:00
Jan Jakes
3db11c443d Use WP-native translation system for marketing optin block
[MAILPOET-4611]
2022-10-31 10:03:45 +01:00
Rodrigo Primo
b225c22217 Replace Paris models with Doctrine entities in WooCommerceBlocksIntegration
[MAILPOET-4365]
2022-09-19 13:35:39 +02:00
Sam Najian
fe6013f0cf Fix the issue of marketing optin block translation not getting added
Since WP 6.0 we can no longer leave translation_path in block
settings empty and expect to receive the fallback thus we need
to add the fallback ourselves.

[MAILPOET-4435]
2022-06-15 13:47:08 +02:00
David Remer
abd4c7b52d Switch WooProductBlock hooks and extender class by version
[MAILPOET-4276]
2022-05-09 10:41:12 +02:00
David Remer
a8d88beec9 Escape output according to WP sniffs
[MAILPOET-4129]
2022-04-04 17:12:33 +02:00
David Remer
a812386244 Fallback to __experimental_woocommerce_blocks_checkout_update_order_from_request action
The current implementaiton of the deprecation of woocommerce_blocks_checkout_update_order_from_request
has a bug which causes a fatal error of our plugin. We do not want immediately switch to the
latest hook in order to keep older versions of the plugin compatible with MailPoet.

Therefore we switch to the deprecated __experimental ancestor for now.

[MAILPOET-4206]
2022-03-28 15:34:26 +02:00
Jan Lysý
38fb681942 Improve blocks integration
[MAILPOET-3937]
2022-02-10 12:35:14 +01:00
Jan Lysý
1da83f7afc Add typecast for the checkout option parameter
[MAILPOET-4074]
2022-01-20 12:48:13 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00