Commit Graph

58 Commits

Author SHA1 Message Date
Pavel Dohnal
a5f3a06110 Add backend mapping and validation
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
7e477a4c9c Register filter service in filter handler
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
e3bd23a2ee Refactor filter factory into multiple functions
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
4fff3ff56c Add filter for year month day date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
8881e1d96c Add filter for year month date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
09167e1440 Unify saving values with custom fields table
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
67c2289f4b Add filter for year date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
28013b2987 Add filter for month date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
f1934b3753 Add filter for checkbox custom fields
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
246d323174 Add filter for radio custom fields
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
ce6348cb71 Add filter for text custom fields
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Jan Lysý
673436bc3f Fix calculating email opens for dynamic segments
[MAILPOET-3612]
2021-05-17 10:22:41 +02:00
Rostislav Wolny
d4fbe95aef Refactor SQL for segment in country to use join instead subselect
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
a3935d3e04 Add strict_types check to WooCommerce country filter class
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
47eb085d2a Add backend mapping and validation for customer country segment
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
b54eb9af41 Register country filter service in filter handler
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
846f51c5d6 Refactor filter selection from filter handler to factory class
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
b177330856 Add customer country segment filter service
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Pavel Dohnal
ddf80dc1f4 Add a unit test
[MAILPOET-3222]
2021-05-03 14:31:23 +02:00
Pavel Dohnal
ba11238514 Refactor parameters into a variable
[MAILPOET-3222]
2021-05-03 14:31:23 +02:00
Pavel Dohnal
6c481ba917 Apply segment
[MAILPOET-3222]
2021-05-03 14:31:23 +02:00
Pavel Dohnal
fb4f851cd4 Add filter for segment
[MAILPOET-3222]
2021-05-03 14:31:23 +02:00
Pavel Dohnal
427a92f913 Allow saving a segment with 0 opens
[MAILPOET-3573]
2021-05-03 12:05:12 +02:00
Rostislav Wolny
a6dcd7a22c Exclude non-content related clicks from segment clicked any
[MAILPOET-3223]
2021-04-29 16:33:05 +02:00
Rostislav Wolny
d45fc34a4f Add clicked any action support to segment filter data mapper
[MAILPOET-3223]
2021-04-29 16:33:05 +02:00
Rostislav Wolny
4bfbfada6e Add support for clicked any to email type segment filter
[MAILPOET-3223]
2021-04-29 16:33:05 +02:00
Jan Lysý
9bd2ec5f6a Check valid data on save a dynamic segment
[MAILPOET-3227]
2021-04-26 11:29:48 +02:00
Jan Lysý
f63865b94c Add dynamic filter for WC total spent
[MAILPOET-3227]
2021-04-26 11:29:48 +02:00
Rostislav Wolny
bf882e3c92 Add validation support for multiple plugins dependency per segment
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
0909b406bc Unify code formatting in segment filter SAL query code
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
cccafb1481 Update segments API data mapper to support subscriptions segments
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
6a7cf8677f Add subscriptions filter into filter handler
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
2f7f4536a2 Add filter class for WooCommerce subscriptions filter
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rodrigo Primo
d410746a8c Make sure parameters in WooCommerceNumberOfOrders are unique
This commit simply makes sure parameters in WooCommerceNumberOfOrders
are unique by prefixing their name with the filter ID. This is to avoid
conflicts when combining segments.

[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
4f3738b0b1 Implement new WooCommerce dynamic segment based on the number of orders
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Pavel Dohnal
deb6b9315e Add new segment to data mapper
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
860444c246 Add new segment to filter handler
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
c1a51d8be4 Add filter class
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Jan Lysý
57900f46e6 Display a message when WooCommerce is disabled
[MAILPOET-3477]
2021-04-12 11:11:25 +02:00
Pavel Dohnal
5013a24eca Use array key instead of security
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
ce48153b12 Fix code using the combined segments
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
5b45bdac1e Enable joining segments using and/or
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
ceae8e17aa Make parameters unique
[MAILPOET-3212]

We need to be able to connect the same segments:
users who are editor or administrator
2021-03-23 15:58:34 +01:00
Pavel Dohnal
7a98abdead Connect dynamic segments filters using UNION select
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Rostislav Wolny
1b74c3e195 Improve email action filter api data validation
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
de9b3689bd Use correct exception in dynamic segment filter handler
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
9fdebdb4d7 Refactor api for creating/updating dynamic segments
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
64b078c7be Add dynamic segments filter data mapper
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
40c9f047be Refactor segment filter data to embedded object
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Pavel Dohnal
15528d84e0 Fix displaying woocommerce static segment in dynamic segments
[MAILPOET-3361]
2021-01-11 13:24:12 +01:00