Commit Graph

18419 Commits

Author SHA1 Message Date
Jan Lysý
cd9904de7d Fix using code instead of couponCode read by id
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
d305498613 Add coupon block acceptance test
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
69833557e4 Add newsletter editor test for coupon block
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
cd596245ce Add coupon default values
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
David Remer
7d36d59e65 Allow rgb in the newsletter style attributes
[MAILPOET-4981]
2023-02-01 11:10:59 +01:00
David Remer
efaa5073fb Query subscriber by user in shortcode
[MAILPOET-4184]
2023-02-01 10:53:26 +01:00
David Remer
37f4082210 Remove wpUser authentication
[MAILPOET-4184]
2023-02-01 10:53:26 +01:00
Rodrigo Primo
f324abd1d0 Update woocommerce-stubs to version 7.3.0
[MAILPOET-4313]
2023-02-01 08:57:47 +02:00
Rodrigo Primo
5d56a0368a Update outdated PHP version message
Changing the message to make it more clear that PHP >= 7.2 and <= 7.3 is
not recommended but still supported.

[MAILPOET-4933]
2023-01-31 13:58:52 +01:00
Rodrigo Primo
106db48f8d Display the PHP outdated version warning for sites running PHP <= 7.3
[MAILPOET-4933]
2023-01-31 13:58:52 +01:00
Jan Jakes
ed2ecb7604 Release 4.6.0 2023-01-31 13:26:57 +01:00
Jan Jakes
10dcc4f45d Fix failing test due to a changed DMARC policy
It seems that the DMARC policy for automattic.com was changed from
"quarantine" to "reject".

[MAILPOET-5038]
2023-01-30 14:40:17 -03:00
Rodrigo Primo
3237351450 Move code to handle tracking source of wizard to its own file
Doing this based on feedback during the PR review: https://github.com/mailpoet/mailpoet/pull/4660/files#r1073420154

[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
8d57e81b99 Use return type hint instead of docblock to tell PHP the return type
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
e37daa6c66 Delete setting instead of updating it when tracking wizard source
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
ad4247a241 Add API endpoint to delete a setting
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
8a4f5c13da Add tracking for users arriving to the wizard from WooCommerce
MailPoet adds a link to the WooCommerce task list pointing to its own
welcome wizard. We want to track users that arrive to the MP wizard from
WooCommerce but at this point tracking is not enabled. So we store the
information in a setting, and send the tracking event to Mixpanel, if it
is enabled, after the user completes the wizard.

[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Rodrigo Primo
1161e6f3f6 Add MailPoet task to WooCommerce homepage
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Jan Lysý
e5d5e20efd Add escaping into rendering homepage_link shortcode
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
9fcb9afa9d Add site:homepage_url shortcode to helper
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
b24b7b86fd Update homepage link in default settings for confirmation email
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
ddca94891d Unify rendering site:homepate_link shortcode with value from helper
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
9f14f3cc08 Change inserted text in shortcode helper for Homepage link
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
6b3fc309cc Add new shortcode [site:homepage_url]
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
 Ján Mikláš
60d933b39a Fix capitalization of MSS
[MAILPOET-5030]
2023-01-30 14:25:41 +01:00
alex-mailpoet
ea57fd9c11 Update pronouns in a string from "his/her" to "their"
[MAILPOET-5028]
2023-01-30 14:24:21 +01:00
alex-mailpoet
a9788b04d4 Remove Code Sniffer ignore
[MAILPOET-4900]
2023-01-30 14:13:33 +01:00
alex-mailpoet
46c45d9bef Fix consolidation/robo PHP 8.2 deprecation notices
[MAILPOET-4900]

When a new robo version with a fix for 'self' in callables is released,
this patch can be removed. Check here:
https://github.com/consolidation/robo/issues/1135
2023-01-30 14:13:33 +01:00
alex-mailpoet
3282e2f063 Update robo and its dependency to PHP 8.2 compatible versions
[MAILPOET-4900]
2023-01-30 14:13:33 +01:00
Sam Najian
05e941e449 Allow dynamic genration of coupon code for some newsletters
Those newsletters that allow updating their body html should
persist the couponId along side the Coupon block settings so
that on the next rendering attempt the same coupon code is
used

[MAILPOET-4763]
2023-01-30 12:46:38 +01:00
Oluwaseun Olorunsola
6a14a3f7b1 Stop saving invalid input values
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
b858f1159a Update tests and remove unused variables
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
f3d73aae03 Escape the content for placeholder
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
494723c818 Use WooCommerce decimal separators when validating input fields
We need to use the decimal separators selected by the user for our validation. We are also using the validation used on the adding/editing coupon page

MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
93af9d491d Add validation for some fields
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
b07d34ee23 Fix tests
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
4b2b94db9e Add Products and Exclude products Usage restriction fields
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
77b9cea62c Add Product categories and Exclude categories Usage restriction fields
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
e2dc137b59 Add Usage limit fields and half of Usage restriction fields
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
2da4f5f3b9 Add basic accordion to group coupon data and free shipping field
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Oluwaseun Olorunsola
7549ed7f0f Add other WooCommerce coupon option methods
MAILPOET-4762
2023-01-30 11:48:48 +01:00
Jan Lysý
0719f3c4e3 Add small code style improvements
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Jan Lysý
ba055b4278 Move static variable into a property
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Jan Lysý
0b5a809883 Extend CouponPreProcessor unit test
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Jan Lysý
a4f7a05bff Disable coupon generating when coupon id is set
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Jan Lysý
1730578a23 Use coupon id instead of text
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Jan Lysý
f88623e48d Add settings code and resetting placeholder
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Jan Lysý
46fdd8eeb3 Add select with existing coupons
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Jan Lysý
40f4216ff8 Add method for getting WC coupons
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Jan Lysý
fe536fcdd0 Add coupon source switch
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00