Commit Graph

154 Commits

Author SHA1 Message Date
Jan Lysý
631f71957c Add support default value for subscriber's custom fields shortcode
[MAILPOET-5463]
2023-07-14 13:26:10 +02:00
Rodrigo Primo
6a438f68d8 Remove duplicated method in ScheduledTaskSubscribersRepository
[MAILPOET-5422]
2023-06-23 16:59:32 +02:00
David Remer
702b695de9 Allow the usage of only from or only to
[MAILPOET-5088]
2023-06-15 12:25:12 +02:00
David Remer
5710796fe9 Add date between options to statistics and select which statistics to grab in batch
[MAILPOET-5090]
2023-06-15 12:25:12 +02:00
David Remer
6d8095d8b5 Render AbandonedCart in transactional and automation emails
[MAILPOET-4934]
2023-05-15 08:19:19 +02:00
David Remer
50827706fb Add product_ids for abandoned cart to email
[MAILPOET-4934]
2023-05-15 08:19:19 +02:00
David Remer
a69b2ee7dc Query for tasks by type and subscriber
[MAILPOET-4934]
2023-05-15 08:19:19 +02:00
Brezo Cordero
f3cd33b3c9 Return same data object on empty or null subscriber
If subscriber is empty we want to return the same token as if it is null.

[MAILPOET-5248]
2023-05-01 13:15:04 +02:00
Rodrigo Primo
5a85390655 Replace remaining calls to utf8_encode() with mb_convert_encoding()
In the previous commit, I removed all calls to the deprecated
utf8_encode() that seemed safe to remove. In this commit, I'm replacing
the calls to this function that I'm not sure if are same to remove or
not with mb_convert_encoding().

mb_convert_encoding() requires the extension mbstring to be enabled. It
should be enabled on most PHP install but not all. We are already using
mbstring functions in our code base and we provide a polyfill for PHP
installs where the extension is not enabled
(62bb75ed91/mailpoet/prefixer/composer.json (L25)).
So it should be safe to use it.

[MAILPOET-4865]
2023-04-28 10:26:03 +02:00
Jan Jakes
69f21814e3 Rename "transactional" email type to "automation_transactional"
[MAILPOET-5258]
2023-04-24 09:54:08 +03:00
Rostislav Wolny
f6b752e807 Revert email links sanitization on save
[MAILPOET-5254]
2023-04-21 11:14:25 +02:00
Pavel Dohnal
8028bd3e95 Use discouraged function directly
We need to add a warning so that we know for sure
that this piece of risky code gets reviewed by a human and consciously ignore the warning

[MAILPOET-5245]
2023-04-20 12:00:29 +02:00
Jan Lysý
4bcf413dbe Fix minute scheduling for post notifications
We recently added minute scheduling in UI, but we forgot to update PostNotificationScheduler.
It caused calculating float number for hours and PN were not scheduled.
[MAILPOET-5244]
2023-04-19 15:32:28 +02:00
Rostislav Wolny
fa59c2c184 Sanitize socialIcon and image links in emails on save
[MAILPOET-5235]
2023-04-17 14:17:49 +02:00
Brezo Cordero
dccd729c2f Sanitize values in Button block template
[MAILPOET-5235]
2023-04-17 14:17:49 +02:00
David Remer
59bbe31433 Allow transactional emails
[MAILPOET-4999]
2023-04-17 13:59:39 +02:00
 Ján Mikláš
63be8969f3 Improve strings based on translators' feedback
[MAILPOET-5201]
2023-04-10 13:03:18 +02:00
Sam Najian
397232e932 Set status of scheduled_task to invalid if it has not subs
[MAILPOET-5134]
2023-04-03 11:53:49 +02:00
David Remer
47ca0d926b Exempt <hr> from being stripped when display type is full
[MAILPOET-5114]
2023-03-28 15:20:10 +02:00
Jan Lysý
2547f4bfbd Replace old model usages by Doctrine
[MAILPOET-4303]
2023-03-22 09:20:11 +01:00
Jan Lysý
2ead4214cd Move query with inserting task subscribers to repository
[MAILPOET-4303]
2023-03-22 09:20:11 +01:00
Sam Najian
ef3c64b85d Adjust use Html2Text from MailPoetVendor namespace
[MAILPOET-5128]
2023-03-15 15:02:32 -03:00
Jan Lysý
d54e666eea Fix ordering by subscriber
[MAILPOET-4660]
2023-03-09 13:02:45 +01:00
Sam Najian
3ec2a187de Force a re-render when resuming a corrupt newsletter
[MAILPOET-5104]
2023-03-06 12:53:02 +01:00
Jan Lysý
26a85458a5 Remove usage Sending::createFromQueue from Scheduler test
[MAILPOET-4369]
2023-03-02 12:39:35 +02:00
Jan Lysý
20e435872f Add method for update processed subscribers
[MAILPOET-4369]
2023-03-02 12:39:35 +02:00
Sam Najian
6a1e734633 Fix WooCommerce wording
[MAILPOET-5098]
2023-03-02 11:30:38 +01:00
Sam Najian
b91f2cde2b Fix another merge conflict issue preventing correct resuming
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
f1a2954dca Remove duplicate line
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
9b87698819 Immediately pause sendingQueue when a newsletter is corrupted
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
f92f045142 Fix issue caused by rebasing trunk
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
c84a6894ba Throw and log the issue if coupon was not found when rendering
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
534bff5a80 Show a notice on top of newsletter listing for corrupt emails
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
b6577565b6 Update status of corrupt newsletter after edit
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
93110826e7 Log when processing the queue for corrupt newsletter
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
976c374cb7 Catch exception when processing coupon block throws
When processing coupon block throws, the exception is
caught, custom exception is thrown and the newsletter status
is updated

[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
John Oleksowicz
49c85c05ed Move campaignId generation to more logical place
MAILPOET-5034
2023-02-26 15:20:48 +01:00
John Oleksowicz
0435c09c53 Calculate and store campaign IDs on sending queues
[MAILPOET-5033]
2023-02-26 15:20:48 +01:00
Oluwaseun Olorunsola
3b9cbbfc61 Remove Coupon block feature flag
MAILPOET-4978
2023-02-23 16:59:15 +01:00
Jan Lysý
83b14013ec Add coupon block unit test
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
cd9904de7d Fix using code instead of couponCode read by id
[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
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ý
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
Jan Lysý
1730578a23 Use coupon id instead of text
[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
Rostislav Wolny
62cff7b388 Refactor analytics data campaigns_count to be more future proof
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00