Commit Graph

9 Commits

Author SHA1 Message Date
Rostislav Wolny
1bc968e55f Fix WooCommerce block's checkout error when opt-in is disabled
When opt-in is disabled it fails to validate checkout data, because it expects
mailpoet.optin to present. This PRs skips extending checkout data schema in case
the opt-in is disabled.
[MAILPOET-4004]
2021-12-07 09:27:24 +01:00
Rostislav Wolny
ae33ab8d82 Fix loading opt-in block metadata
Build version of plugin doesn't contain assets/js folder.
We need to copy block.json file with the metadata to assets/dist directory and load it from there.
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
a8ad7b7767 Handle checkout subscription for guest/non-registered customers
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
6ff678ae1b Fix PHPStan warnings
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
bdab97bc00 Use WPFunctions wrapper in MarketingOptinBlock
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
98804d981c Add strict types to newly added php files
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
1d0dc612d6 Remove todo
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
70391fdc4c Graduate woocommerce_blocks_checkout_update_order_from_request
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
72d4db26e3 Checkbox implementation and refactor naming structure
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00