Commit Graph

20858 Commits

Author SHA1 Message Date
Rodrigo Primo
841745c706 Remove shipping method IDs from the 'used shipping method' query
This commit simplifies the logic of the 'used shipping method' segment
by removing the shipping method IDs from the queries. After some
considering, we have come to the conclusion that using just the shipping
method instance ID is enough.

[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Rodrigo Primo
60d3aa853c Fix prettier formatting issues during rebase
For some reason those issues were not fixed automatically. I will
investigate if I'm missing a pre-commit hook or something in my
environment.

[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Rodrigo Primo
f20878f7f3 Update the queries of the 'used shipping method' filter
This commit changes the logic of the code that builds the queries for
the 'used shipping method' filter. The initial implementation relied
only on the shipping method name that is stored in
wp_woocommerce_order_items.  This implementation did not work as the
name is not unique. The new implementation use the shipping method id
and the instance id that are stored in wp_woocommerce_order_itemmeta and
the combination of both fields is unique.

[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Rodrigo Primo
993e292fd0 Fix typo
[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Rodrigo Primo
f85b7a52fc Change logic of the code to build the 'used shipping method' segment UI
This commit fixes an issue with the initial logic used to retrieve
shipping methods to build the UI of the 'used shipping method' segment.
It updates the code to properly retrieve WooCommerce shipping methods
configured for all zones. Before the code was getting just the shipping
method types and the shipping method instances.

The query that is used to get the subscribers that match this segment
will be updated in another commit.

[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Rodrigo Primo
5447e253e5 Add backend logic to handle new "used shipping method" segment
[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Rodrigo Primo
243c096643 Add UI for new "used shipping method" segment
[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Veljko
4a26d3a067 Additional scenario added
[MAILPOET-5322]
2023-07-04 17:46:55 +02:00
Veljko
fcf164a67d Include one more newsletter and segment
[MAILPOET-5322]
2023-07-04 17:46:55 +02:00
Veljko
530addfa5f Improve the test archive page
[MAILPOET-5322]
2023-07-04 17:46:55 +02:00
Brezo Cordero
dc4788d440 Release 4.20.1 2023-07-04 14:46:59 +03:00
Veljko
96d78554ba Update tests to include await and update helper method
[MAILPOET-5451]
2023-07-04 13:38:29 +02:00
alex-mailpoet
5d88f02216 Replace multiple subscriber update queries with one in sending loop
[MAILPOET-5178]
2023-07-03 16:52:46 +02:00
alex-mailpoet
764114edc7 Replace two counting DB queries with arithmetic in sending loop
[MAILPOET-5178]
2023-07-03 16:52:46 +02:00
David Remer
aadd6d6dba Fix email action styles
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
f89cd3d84f Improve method name
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
43a540c03c Order emails by order in automation
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
53f58fd1a4 Use one formatter
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
87ef876f73 Add whitespace only when subvalue empty
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
f5046ca445 Ensure string in link
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
190da3b0e5 Use WooCommerce wrapper instead of native functions, test if WC is active
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
8b1d51fcd6 Apply prettier 2023-07-03 12:44:07 +02:00
David Remer
c03a3becc4 Use WooCommerce abstraction from automations instead of MP 2023-07-03 12:44:07 +02:00
David Remer
2203629991 Fix small styling issues
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
3b8569e47e Ensure newsletter exists
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
4c6f0ff073 Add interactive elements to email tab
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
1bd4050c1a Format prices in frontend
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
be29c00f08 Add price formatter
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
49a83b3760 Remove padding from components popover
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
16d8f04d9f Empty data when updating asynchronosly to show loading indicators
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
David Remer
aa7ca7039a Add Email Tab
[MAILPOET-5092]
2023-07-03 12:44:07 +02:00
Veljko
81f7ddba9d Update onboarding test scenario 2023-06-29 17:16:34 +03:00
Veljko
aa678b4609 Include wait in onboarding scenario 2023-06-29 17:16:34 +03:00
Veljko
5c33dbe220 Update forms adding and helper method 2023-06-29 17:16:34 +03:00
Veljko
7d748b0844 Improve auth and add try finally to all tests 2023-06-29 17:16:34 +03:00
Veljko
8ea5a39275 Rename authentication to login 2023-06-29 17:16:34 +03:00
Veljko
64fbd451e6 Change the url to wp-login.php 2023-06-29 17:16:34 +03:00
Veljko
8b27f0b9bb Improve login method and update tests 2023-06-29 17:16:34 +03:00
John Oleksowicz
ac54fbc58a Use woocommerce 7.8.0
MAILPOET-5438
2023-06-28 21:39:27 +02:00
John Oleksowicz
2a012f5fc8 Add braces to if statements
MAILPOET-4990
2023-06-28 15:14:03 +02:00
John Oleksowicz
2db454bc49 Fix exception codes
MAILPOET-4990
2023-06-28 15:14:03 +02:00
John Oleksowicz
61bb3a65d7 Add backend logic for customer text field filters
MAILPOET-4990
2023-06-28 15:14:03 +02:00
John Oleksowicz
b018918bc4 Extract (soon to be) shared text field operators
MAILPOET-4990
2023-06-28 15:14:03 +02:00
John Oleksowicz
b0e79e47b9 Rename "is in country" filter to "country"
MAILPOET-4990
2023-06-28 15:14:03 +02:00
John Oleksowicz
5960642b77 Add frontend for city, postal code filters
MAILPOET-4990
2023-06-28 15:14:03 +02:00
John Oleksowicz
7b157e6ce7 Refactor SubscriberTextField to TextField
These fields are now going to be reused by other non-subscriber filters

MAILPOET-4990
2023-06-28 15:14:03 +02:00
John Oleksowicz
14be17cba4 Release 4.20.0 2023-06-27 10:48:35 -05:00
 Ján Mikláš
f2a99cf3e0 Fix typo
[MAILPOET-5432]
2023-06-27 12:58:47 +03:00
Jan Jakes
3839ca7a0e Initialize fields lazily to avoid calling queries on every request
[MAILPOET-5426]
2023-06-26 13:19:32 +02:00
Jan Jakes
9498c1e0bd Mark missing filter value with an icon
[MAILPOET-5414]
2023-06-26 13:19:32 +02:00