6a1e734633
Fix WooCommerce wording
...
[MAILPOET-5098]
2023-03-02 11:30:38 +01:00
4192f82d29
Throw instead of directly logging when WC is not active
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
93110826e7
Log when processing the queue for corrupt newsletter
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
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
2a6b7cd210
Log WC is inactive when trying to generate coupon
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
12456828fe
Fix mapping products and categories for new coupon
...
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
767e6f4fbf
Fix renamed coupon block attributes
...
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
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
b07d34ee23
Fix tests
...
MAILPOET-4762
2023-01-30 11:48:48 +01:00
4b2b94db9e
Add Products and Exclude products Usage restriction fields
...
MAILPOET-4762
2023-01-30 11:48:48 +01:00
77b9cea62c
Add Product categories and Exclude categories Usage restriction fields
...
MAILPOET-4762
2023-01-30 11:48:48 +01:00
7549ed7f0f
Add other WooCommerce coupon option methods
...
MAILPOET-4762
2023-01-30 11:48:48 +01:00
ba055b4278
Move static variable into a property
...
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
a4f7a05bff
Disable coupon generating when coupon id is set
...
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
7b11962bf2
Update translators hint for the coupon description
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
71322ee512
Add newsletter id to the coupon description
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
dc2638a3ab
Augment comment for CouponPreProcessor::shouldPersist
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
9c8afa85d4
Add more unit tests for CouponPreProcessor
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
dcdb447578
Properly check for existance of code in coupon block setting
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
39d22bdd62
Move Coupon instantiation to MailPoet\WooCommerce\Helper
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
4b92a9a4a5
Allow coupon generation per render for automatic emails
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
9d65fe8d5e
Persist coupon block expiration in WC_Coupon
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
c353830163
Make sure coupon code placeholder doesn't generate coupon
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
6dd87b0dec
Add functionality to update coupon when block settings change
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
fa3216be9b
Set missing parameters when creating coupon
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
31201eb3cc
Generate coupon code for each coupon block missing the code
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
f551d4388c
Add CouponPreprocessor to create coupons before rendering
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00