Commit Graph

18419 Commits

Author SHA1 Message Date
Brezo Cordero
277f870178 Remove migration test
[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Oluwaseun Olorunsola
4be7f37bbc Remove the feature flag from Landing page
MAILPOET-4803
2023-01-23 15:13:38 +01:00
Oluwaseun Olorunsola
9ac18ab69e Update styling and use semantic HTML
MAILPOET-4799
2023-01-23 14:09:16 +01:00
Oluwaseun Olorunsola
1bec3b4637 Remove image assets from plugin directory
MAILPOET-4799
2023-01-23 14:09:16 +01:00
Oluwaseun Olorunsola
33e74bb0dd Fix mobile issues for FAQ section
MAILPOET-4799
2023-01-23 14:09:16 +01:00
Oluwaseun Olorunsola
89d5f108e4 Design the landing page
Add the content and images for the landing page

MAILPOET-4799
2023-01-23 14:09:16 +01:00
Sam Najian
e4d00171b4 Fix issue in test where string was set to newsletter body
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
9f070f1914 Check blockDefaults.coupon when trying to delete its props
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
94b5803337 Cleanup coupon data from template on save
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
9a2d4e83b2 Change NewsletterCoupon::cleanupSensitiveData signature
This change allows passing body array and retuning body array
so that NewsletterEntity instance doesn't need to get passed
around

[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
59d91ff7ef Fix failing unit test
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
bfe658fc86 Replace coupon code with code placeholder when duplicationg
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
7ced42a494 Fix bug when duplicated newsletter uses the source's coupon
On duplication, the sensitive data of the coupon were
inherited from the source

[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
6164a92b9f Cleanup coupon sensitive data from blockDefaults
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
7b11962bf2 Update translators hint for the coupon description
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
3c7f1021b6 Re-adjust percent sign positioning
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
644412998a Adjust percent sign positioning
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
c1afee57e9 Fix bug causing the percent sign to move on scroll
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
ac1d014562 Fix bug in validating on render
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
71322ee512 Add newsletter id to the coupon description
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
dc2638a3ab Augment comment for CouponPreProcessor::shouldPersist
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
41b23b24b9 Add Coupon block feature flag
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
9c8afa85d4 Add more unit tests for CouponPreProcessor
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
18c3424f03 Add validation to expiry days field of coupon block
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
1b1ee34acf Adjust styling and add validation to coupon amount
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
d963bb4e7d Update coupon setting view styling
Adds percentage sign when the discount type is of percentage
type, adjusts the width and view of coupon amount field

[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
b1f42bbeba Add unit tests for CouponPreProcessor
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
dcdb447578 Properly check for existance of code in coupon block setting
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
39d22bdd62 Move Coupon instantiation to MailPoet\WooCommerce\Helper
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
e4c9d037b1 Add missing strict_types to Coupon.php
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
d1ad7fecd7 Fix mistake in comment
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
4b92a9a4a5 Allow coupon generation per render for automatic emails
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
9d65fe8d5e Persist coupon block expiration in WC_Coupon
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
c353830163 Make sure coupon code placeholder doesn't generate coupon
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
6dd87b0dec Add functionality to update coupon when block settings change
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
fa3216be9b Set missing parameters when creating coupon
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
31201eb3cc Generate coupon code for each coupon block missing the code
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
48c075b730 Add WC helper function to retrieve coupon code from id
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
14c85e3380 Pass Coupon code placeholder from PHP and unify
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
f551d4388c Add CouponPreprocessor to create coupons before rendering
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
751dc539f6 Add information overlay to Coupon block
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
d305680ba5 Remove coupon code input from the settings sidebar
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
bb7775f87b Render Coupon block in email body
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
54d9b517dd Adjust coupon block styling in editor
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
199910a52f Add coupon block config
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
983102c094 Add Coupon block setting pane
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
0d330e08b4 Bootstrap Coupon block and make it function
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
David Remer
ccd1a5363d Fix typo in variable
[MAILPOET-4510]
2023-01-19 10:52:51 +01:00
Rostislav Wolny
c368b130b8 Add wait calls to prevent calling translations API too quickly
This commit is an attempt to prevent 429 "Too manu requests" errors
we sometimes experience during the Switching languages test.
[MAILPOET-4969]
2023-01-17 14:21:59 +01:00
David Remer
3ffe99d5ab Release 4.5.0 2023-01-17 15:14:55 +02:00