Commit Graph

13868 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
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
26fc7ba2f0 Update tracking check for re-engagement emails
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
5b0aebdba3 Improve typography in new tracking settings descriptions
[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
4d7ff36211 Add mailpoet_ prefix to global settings variable
We pass some data to MailPoet module using global JS variables.
It is safer to always use prefix.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
2549bc6645 Remove open and clicks and woo cookie settings
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
57c30cbb72 Fix inactive subscribers toggle off logic in settings
[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
Rostislav Wolny
590652c471 Add engagement tracking settings to advanced tab
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Oluwaseun Olorunsola
5ee3622067 Fixed sending hashed MSS API key
[MAILPOET-4003]
2021-12-06 16:57:05 +01:00
Oluwaseun Olorunsola
ccd3eee2cb Package json dependencies update
[MAILPOET-3979]
2021-12-06 14:56:43 +01:00
Jan Lysý
5ebf99d49d Improve message for scheduling WC segment
[MAILPOET-3954]
2021-12-06 14:52:34 +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ý
a78e97d349 Remove the old model usage
[MAILPOET-3753]
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ý
a30d25e32f Add new dependencies to integration test
[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 Jakes
b535594bc1 Set PHP_CodeSniffer ruleset paths relative to its install
This allows running the ruleset from different directories than the free plugin.
See: https://github.com/squizlabs/PHP_CodeSniffer/issues/2764#issuecomment-856677915
2021-12-06 12:56:48 +01:00
Pavel Dohnal
c493813c8f Remove tests dependency
It is a rare case when static analysis fails on php 7
and passes on php8 so we can run tests earlier.
2021-12-01 12:23:13 +01:00
Rostislav Wolny
46b170a44d Use 16 executors for acceptance tests 2021-12-01 12:23:13 +01:00
Jan Lysý
de78a5b6a6 Increase DB version for running migration
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
2de539ec10 Fix segment name
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
4d3e5af57c Update acceptance test for purchased products
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
15442c4b2d Update unit test with purchased product filter
[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
Jan Lysý
d9d91de0f6 Change name in select
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
eedca86fe4 Add select with operator
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
040bf7e294 Allow select more products
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
e7a27c4d89 Add new translations and types
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Oluwaseun Olorunsola
32c971aaa8 Update subscribers count translation strings
[MAILPOET-3972]
2021-11-30 13:51:10 +01:00
Ján Mikláš
e77cc98276 Release 3.74.2 2021-11-30 13:09:44 +01:00
Rostislav Wolny
29afeab36b Add retry for pulling acceptance tests images
[MAILPOET-3991]
2021-11-30 13:01:31 +01:00