AutomateWoo currently does not create its database tables until youy
visit an admin page. Starting with version 5.8.1, this was causing some
tests to fail because AutomateWoo was trying to run a scheduled task
that relied on a database table that didn't exist yet. This is a quick
attempt to fix this by visiting the admin to trigger table creation.
MAILPOET-5449
These tests have a final assertion that assumes confirmation emails are
enabled. If a previous test switched confirmation emails off, these
would fail.
MAILPOET-5449
The segment `used shipping method` might contain long names that are
displayed inside the select box to select shipping method names. Those
long names were breaking the layout of the select box. This commit fixes
this problem by adding a scrollbar to each option when needed.
See https://github.com/mailpoet/mailpoet/pull/4967#issuecomment-1602425406
[MAILPOET-4992]
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]
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]
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]
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]