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
93cfc4d251
Add loading settings to JS also on Welcome Wizard page
...
Settings are needed in the WooCommerce setup step where we
have a logic for setting tracking level.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
3896975ef3
Update settings data migration db version check
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
274e197a49
Use new tracking config also in JS apps
...
This commit replaces window.mailpoet_tracking_enabled variable with
tracking config object that carries the level and configuration for
all tracking options (emailsTrackingEnabled, cookieTrackingEnabled).
The window.mailpoet_tracking_enabled is confusing since it is not obvious what type of tracking is enabled.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
a77f82e0cf
Adjust WooCommerce wizard step to set proper tracking settings
...
We want to allow users to adjust tracking settings also on the WooCommerce setup Wizard.
In case they choose to disable cookie tracking we set the lowest from current_value and 'partial'.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
7b69efea13
Show notice when migration affects tracking settings
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
432b2e6ff5
Add tracking settings migration for older installs
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
ca10fedf3b
Add tracking level setting to analytic report
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
699266c920
Use TrackingConfig and new tracking settings property in PHP
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
fbe933eb12
Change default settings for tracking
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
4bc7f3c2bc
Add service for distributing tracking configuration in the plugin
...
We introduced new settings that enable set different levels (basic, partial, full) of user tracking.
Each level enables different tracking options. This service should encapsulate the logic that determines
what should be tracked on each level of the setting.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Jan Lysý
a3cd53e9c2
Use lower batchSize and move constant
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
14731a46fa
Refactor inserting from orders
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
1ef0d22ebb
Use loop and add enforce execution limit
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
565abbf897
Ensure collation is set
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
9bd6cb159c
Sync subscribers sequentially from orders
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
00f4913739
Remove the column is_woocommerce_synced
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
c0c7e23b0e
Remove the rest of the old model usage
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Lysý
ebf4ef3914
Run cron again when all customers aren't synced
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Lysý
2ada3c8b75
Change behavior to update names in batch
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Lysý
e0fd783303
Add new columns for subscribers
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Jakes
527224f755
Remove specific file exclusions from PHP_CodeSniffer config
2021-12-06 12:56:48 +01:00
Jan Lysý
de78a5b6a6
Increase DB version for running migration
...
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
eabd1480ea
Add migration for new format purchased product filter
...
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
d3ee546518
Add support for more product ids in filter
...
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
bdd4587fd3
Add getter for operator
...
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Pavel Dohnal
e2aef203d2
Make sure segment id is always number
...
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
f759057fa8
Add filter
...
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
ec390b2131
Add list segment to data mapper
...
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
5fc8d51720
Add a filter for lists dynamic segment
...
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
dcc8eccb42
Add control for selecting segments
...
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Rodrigo Primo
6bea3873b5
Remove unused property Daemon::featureSwitch
...
This property became obsolete after
074d1ae07cbeaffffeb9c80fb83b32f548b5de97.
[MAILPOET-3859]
2021-11-29 16:23:13 +01:00
Rodrigo Primo
84209851e2
Remove re-engagement-email feature flag
...
[MAILPOET-3859]
2021-11-29 16:23:13 +01:00
wxa
aa4ecb2645
Add subscriber score segment back-end
...
[MAILPOET-3607]
2021-11-29 13:02:49 +01:00
Rodrigo Primo
3373d9dc00
Add code to process the new link:subscription_re_engage_url shortcode
...
[MAILPOET-3976]
2021-11-25 14:55:14 +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
c5df5fd1e7
Prevent updating subscriber global status in case opt-in is disabled
...
[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
f727bb6cfa
Remove spaces around parenthesis
...
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
e33378da59
define externals in eslint config
...
[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