Commit Graph

19873 Commits

Author SHA1 Message Date
Jan Jakes
88b23f6a59 Add subscriber to WP user subject transformer
[MAILPOET-5168]
2023-06-12 12:13:41 +02:00
Jan Jakes
b132405f42 Add WordPress user subject and payload
[MAILPOET-5168]
2023-06-12 12:13:41 +02:00
Jan Jakes
cc352e6e2d Add WordPress integration
[MAILPOET-5168]
2023-06-12 12:13:41 +02:00
 Ján Mikláš
21c8891b56 Fix translation string typo 2023-06-12 11:07:12 +03:00
 Ján Mikláš
3a7ac127a2 Add June sale info to repo description
[MAILPOET-5214]
2023-06-09 18:49:28 +02:00
 Ján Mikláš
e10684a18c Update 500,000 websites to 600,000 in WP.org description
[MAILPOET-5214]
2023-06-09 18:49:28 +02:00
Jan Lysý
8ab8890cb0 Add task list to GH pull-request template
[MAILPOET-5362]
2023-06-08 10:55:29 +02:00
Veljko
31d252eb87 Remove spaces since it is alphanumerical 2023-06-08 09:59:00 +02:00
Veljko
e5327598b2 Finalise the update of the test
[MAILPOET-5317]
2023-06-08 09:59:00 +02:00
Veljko
13e869d593 Update some scenarios
[MAILPOET-5374]
2023-06-08 09:59:00 +02:00
Pavel Dohnal
16a374cf42 Prevent page to break when iframe fails to load
[MAILPOET-5381]
2023-06-07 18:19:57 +03:00
Veljko
5880ce2b25 Add missing plus before the number 2023-06-07 16:01:02 +02:00
Veljko
ecf188c8b6 Change 26 to 25 hours in the future when scheduling
[MAILPOET-5374]
2023-06-07 16:01:02 +02:00
 Ján Mikláš
cda8d50a2a Capitalize plugin name, add Oxford comma
[MAILPOET-5371]
2023-06-07 09:41:38 +02:00
Pavel Dohnal
6d97e79576 Release 4.18.0 2023-06-06 13:38:36 +02:00
Veljko
d45ce86070 Update test with small changes
[MAILPOET-5321]
2023-06-05 23:13:57 +03:00
Veljko
e9db0b3bd7 Add test scenario for subscribing and seeing new page
[MAILPOET-5321]
2023-06-05 23:13:57 +03:00
Rodrigo Primo
de3d3a5fe2 Fix: subscriber segmentation can now target contacts who did not open any emails
There was a bug in the query that is used to get the subscribers that
opened emails that was preventing it from working when trying to get
subscribers that opened zero emails.

The problem was that we were adding the user_agent_type	as a condition
on the WHERE part of the clause. Meaning that it was being used to
filter the overall results and thus excluding all subscribers that had
no entries in the wp_mailpoet_statistics_opens table. By moving this
condition to the ON clause in the LEFT JOIN, we use the user_agent_type
field to match rows between tables. The value of this field will still
be taken into consideration when counting the number of opens as we are
counting the number of entries in the wp_mailpoet_statistics_opens
table.

[MAILPOET-5347]
2023-06-05 13:46:43 +02:00
Veljko
16390c0f2d Update methods in tester 2023-06-05 13:09:59 +02:00
Veljko
8f1017aa9b Change helper method name to amOnSiteHomepage
[MAILPOET-5312] & [MAILPOET-5313]
2023-06-05 13:09:59 +02:00
Veljko
3728421440 Updated 3 tests and added new methods to tester
[MAILPOET-5312] & [MAILPOET-5313]
2023-06-05 13:09:59 +02:00
Rostislav Wolny
fc7b4ccebb Fix alignment of buttons in error notices displayed on WPCOM
[MAILPOET-5367]
2023-06-05 13:08:58 +02:00
Rodrigo Primo
43ee076562 Change the behavior of the country segment
This commit changes the behavior of the country segment to include
subscribers that never placed an order (or placed orders that failed or
were canceled) as long as they have a country set in the WooCommerce
customer lookup table.

[MAILPOET-4188]
2023-06-05 12:26:03 +02:00
 Ján Mikláš
0ab2f8e6a3 Show June 2023 sale banner
[MAILPOET-5213]
2023-06-05 09:47:15 +02:00
Veljko
47ab08db22 Updated test TemplatesPagesLoadCest to include more checks
[MAILPOET-5314]
2023-06-02 20:43:28 +02:00
 Ján Mikláš
c36ee69e38 Update plugin name to highlight email marketing and automation
[MAILPOET-5371]
2023-06-02 10:42:20 -03:00
 Ján Mikláš
87ebc1f05e Add woocommerce and automattic as contributors to the plugin
[MAILPOET-5371]
2023-06-02 10:42:20 -03:00
David Remer
64cbf8a7c0 Ensure signup confirmation enabled
[MAILPOET-5369]
2023-06-02 14:41:51 +02:00
Veljko
5d170b6d5c Fix k6 test by updating the text to items
[MAILPOET-5370]
2023-06-02 13:00:48 +02:00
Veljko
1ec5f84190 Update test to have verification of the updated message colors
[MAILPOET-5320]
2023-06-02 11:24:16 +02:00
Veljko
a8b04a8dca Improve the test to include checks for the blank form
[MAILPOET-5316]
2023-06-01 09:51:50 -05:00
Rodrigo Primo
4209b0dd15 Fix testItDisplaysAnUncheckedCheckboxIfCurrentUserIsSubscribed() test
Two different PRs changed the behavior of the checkbox that is tested in
the failing test: https://github.com/mailpoet/mailpoet/pull/4921 and
https://github.com/mailpoet/mailpoet/pull/4924.

The first PR changed the behavior of the checkbox and thus updated the
testItDisplaysAnUncheckedCheckboxIfCurrentUserIsSubscribed(). This test
class was mocking the method Helper::woocommerceFormField() and that is
why the affected test expected the rendered optin checkbox field to be
empty.

But https://github.com/mailpoet/mailpoet/pull/4924 changed how the
checkbox is generated, stopped using woocommerceFormField() and removed
the mock
(https://github.com/mailpoet/mailpoet/pull/4924/files#diff-6b8e70b6fb9886a41b8ca1040c4e455184f6d2436458d4579b5f8e5eeb9e666fL52).
That is what made the test start failing. Now that the mock is
not used anymore, we should check for the actual string instead of
empty.

[MAILPOET-5368]
2023-06-01 11:51:13 -03:00
David Remer
565959f28c Unify escaping of the attribute
[MAILPOET-4632]
2023-06-01 13:20:31 +02:00
David Remer
a5899895a8 Check if we have proper variables for padding and colors
[MAILPOET-4632]
2023-06-01 13:20:31 +02:00
Rodrigo Primo
0d3293be52 Remove Subscribers\Source::setSource()
I found this method in the context of a ticket to refactor Paris code to
Doctrine. As far as I can tell, it is not used anymore and it is
safe to delete it.

It was added in 1af5802 and was used only inside
Models\Subscriber::subscribe(). Then subscribe() was moved to
Subscriber\SubscriberActions in 7528f0f. Finally, commit 7db2384
refactored SubscriberActions removing the only two calls to
Source::setSource().

The test class SourceTest is removed as well as its only purpose was to
test Source::setSource().

[MAILPOET-5345]
2023-06-01 12:06:14 +02:00
Rodrigo Primo
b2de15add7 Update tests now that woocommerce_form_field() is not used anymore
[MAILPOET-4133]
2023-06-01 11:38:54 +02:00
Rodrigo Primo
206bd7fbab Fix layout error in the optin checkbox for some WP themes
This commit fix a layout error in the optin checkbox that MailPoet adds
to the WooCommerce checkout when the site is using the themes Twenty
Twenty-Two and Twenty Twenty-Three.

This problem was happening because WooCommerce add CSS to make its own
checkboxes work with those two themes, but it broke checkboxes the
layout of checkboxes created with woocommerce_form_field().

The Woo checkboxes in the checkout display the text inside an <span>
element and that doesn't happen for checkboxes created with
woocommerce_form_field(). The problem is in those CSS rules:

0ea5205672/plugins/woocommerce/client/legacy/css/twenty-twenty-three.scss (L731-L757)

[MAILPOET-4133]
2023-06-01 11:38:54 +02:00
David Remer
c7ef1c3443 Release 4.17.1 2023-05-31 10:19:30 +03:00
alex-mailpoet
e38fd951d1 Check indexes exist when adding them
[MAILPOET-5364]
2023-05-31 10:19:30 +03:00
Rodrigo Primo
bcf57de500 Remove remaining uses of Subscriber model in SubscriberExporterTest
[MAILPOET-5361]
2023-05-30 11:16:46 -05:00
Rodrigo Primo
1c0f5af55c Remove remaining uses of CustomField model in SubscriberExporterTest
[MAILPOET-5361]
2023-05-30 11:16:46 -05:00
Rodrigo Primo
b98a17bc43 Remove remaining uses of Subscriber model from BuiltInCaptchaValidatorTest
[MAILPOET-5361]
2023-05-30 11:16:46 -05:00
Rodrigo Primo
9e71217acc Remove remaining uses of Newsletter model from TransactionalEmailHooksTest
[MAILPOET-5361]
2023-05-30 11:16:46 -05:00
Rodrigo Primo
87ed5d3b02 Remove remaining use of Newsletter model from RendererTest class
[MAILPOET-5361]
2023-05-30 11:16:46 -05:00
Rodrigo Primo
63f0ee23fa Cleanup code now that defaultStatus is always false
[MAILPOET-4178]
2023-05-30 13:25:24 +02:00
Rodrigo Primo
cd43cfbb1f Fix typo
[MAILPOET-4178]

Co-authored-by: John Oleksowicz <8656640+johnolek@users.noreply.github.com>
2023-05-30 13:25:24 +02:00
Rodrigo Primo
3d88960745 Update automated tests to reflect change in the optin checkbox behavior
[MAILPOET-4178]
2023-05-30 13:25:24 +02:00
Rodrigo Primo
8e6fdddeda Stop marking subscribers as unsubscribed if checkbox is not checked
Before we wanted to makr subscribers as unsubscribed when creating a
subscriber linked to a new WP users if the optin checkbox was not
checked. We are changing this behavior and no action should be taken
when creating a new subscriber with the optin checkbox unchecked. So
this commit removes code that is not necessary anymore from
\MailPoet\Segments\WP::createOrUpdateSubscriber().

[MAILPOET-4178]
2023-05-30 13:25:24 +02:00
Rodrigo Primo
80655813b7 Stop subscribing customers to the Woo list when they are created
This commit changes the behavior of
\MailPoet\Segments\WooCommerce::synchronizeRegisteredCustomer(). This
method is called when a new WooCommerce customer is created. Before, it
would always add the customer to the Woo segment expecting
\MailPoet\WooCommerce\Subscription::subscribeOnCheckout() to unsubscribe
the customer if the optin checkbox was not checked.

Since the behavior of the latter method changed in a previous commit and
it doesn't unsubscribe customers anymoreif the option checkbox is not
checked, the former method had to be updated to only subscribe the customer
if not in checkout context or if in checkout context and optin checkbox is
enabled and checked.

[MAILPOET-4178]
2023-05-30 13:25:24 +02:00
Rodrigo Primo
d6e0768e1f Change the behavior of the optin checkbox in the Woo checkout
This commit changes the behavior of the optin checkbox that MailPoet
adds to the WooCommerce checkout.

Now the checkbox is not checked by default for logged in users who
already subscribed to a list. Also, users won't be unsubscribed anymore
and have their global status change to unsubscribed if they uncheck the
checkbox.

The only action that is performed after this change is to subscribe
users if they check the checkbox.

This change was implemented both for the normal checkout and the block
checkout.

It was also necessary to remove the AutomateWoo integration that
depended on subscribers being unsubscribed during checkout.

[MAILPOET-4178]
2023-05-30 13:25:24 +02:00