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
Rostislav Wolny
62cff7b388
Refactor analytics data campaigns_count to be more future proof
...
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
b24beb1dae
Track only revenue data in the current shop currency
...
This is a protection against an edge case when a shop changes
the currency. We want to make sure we don't mix currencies.
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
b52c53f7f5
Add comment about revenue being tracked once per purchase
...
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
f66be1b947
Improve typehints and doctypes for the woo revenue tracking
...
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
5d3b26bb58
Remove unnecessary tracking enabled check
...
Registering the hook doesn't cost us much and it makes sense to register
it even when the tracking is disabled so that the data are always loaded
when calling: wp wc tracker snapshot --format=yaml
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
55b64d0354
Flatten array campaigns revenue tracking data
...
This format will be more suitable for further processing for Looker.
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
7ce1b6eb6c
Cast numeric revenue tracking data
...
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
97b42a4a91
Add currency of the store to the tracking data
...
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
bedde323bd
Add proper test group for the tracker integration test
...
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
0cf2787937
Add email campaigns count to WC tracker data
...
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
f0bc53766b
Catch and log errors when fetching data in MailPoet Woo Tracker
...
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00