Commit Graph

16 Commits

Author SHA1 Message Date
Mike Jolley
435f638011 Apply rules on lib dir 2024-03-21 16:57:59 +01:00
alex-mpoet
6e38762d6d Hide AutomateWoo checkout opt-in block so only one checkbox is visible
[MAILPOET-5721]
2024-01-22 14:48:00 +01:00
Jan Lysý
525c80bac4 Fix PHPStan warnings in lib
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Jan Jakes
49dd627a76 Update references to renamed files
[MAILPOET-4938]
2023-10-02 13:05:20 +02:00
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
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
Rodrigo Primo
b225c22217 Replace Paris models with Doctrine entities in WooCommerceBlocksIntegration
[MAILPOET-4365]
2022-09-19 13:35:39 +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
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