Commit Graph

22 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
Jan Jakes
527224f755 Remove specific file exclusions from PHP_CodeSniffer config 2021-12-06 12:56:48 +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
b137e3fb0c Add workaround for translations for of opt-in block in editor
We currently don't have tooling for passing translations from scripts to wp.i18n.
This solution provides a temporary way of passing translated strings to wp.i18n for scripts that are
used outside admin pages that are handled via MailPoet.
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
f95bd95923 Remove registering translations for front end checkout opt-in
The front end block doesn't contain any translatable strings and
so far we don't generate any translation files for scripts.
[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
Mike Jolley
0f5b7d0ac7 Checkbox implementation
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
53d3fb9c1e Basic block structure and checkbox import
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
78e0ac4d4a Initial build config and init from php side
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Jan Lysý
6eeed44735 Add info when form is inactive to subscription form block
[MAILPOET-3896]
2021-11-17 15:39:48 +01:00
Pavel Dohnal
d6fb223114 Remove code for older WP versions
[MAILPOET-3096]
2020-08-13 17:01:05 +02:00
Ján Mikláš
6d6a01ba53 Rename main styles files
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
Jan Jakeš
1774b48666 Autofix unused "use" statements
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Rostislav Wolny
c396d74d90 Refactor form block assets enqueuing to use proper hook
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
3443f082ef Fixes after I messed up rebase :( sorry
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
fd2c13a2e3 Refactor block registering
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00