Jan Lysý
6f5f3bc6c5
Remove usage of old model from SubscriptionTest
...
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Jan Lysý
7968db94ff
Update integration tests for usage SubscribersRepository
...
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Rodrigo Primo
a50c20637a
Create an empty WC_Emails stub instead of using stdClass in a test
...
This commit simply improves an integration test that I modified while
working on [MAILPOET-3421] to use an empty WC_Emails stub instead of
using stdClass.
2021-03-01 14:14:19 +01:00
Rodrigo Primo
edbb69a239
Use the woocommerce_email action to customize WC emails
...
This commit changes the WC action that MailPoet uses to hook into WC and
customize the footer and the header of WC e-mails. Before, MailPoet was
using the woommerce_init action. The problem with using this action to customize
the e-mails is that it runs on every request. Furthermore, since we were calling
WC->mailer() inside the callback, we were instantiating WC_Emails on
every single request (WooCommerce instantiate this class only when
needed).
Replacing woocommerce_init with woocommerce_email means that our code
will run only when needed (right after WooCommerce adds callbacks to the
actions woocommerce_email_header and woocommerce_email_footer) and that
we won't be unnecessarily instantiating WC_Emails ourselves. We get the
singleton instance of this class as a parameter.
[MAILPOET-3421]
2021-03-01 14:14:19 +01:00
Jan Lysý
922c52f7df
Remove phpstan errors from the rest of the tests
...
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
wxa
f571506129
Use woocommerce_form_field for WC checkout optin [MAILPOET-2925]
2021-01-04 14:22:42 +01:00
Rostislav Wolny
645f888186
Refactor WP Users segment controller to injectable service
...
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
54727ad9a2
Fix integration tests to work with updated codeception/verify
...
[MAILPOET-3203]
2020-10-20 13:18:43 +02:00
wxa
0dffed35e9
Extract ALC and ACC block classes out of block renderer [MAILPOET-2979]
2020-10-07 11:48:50 +02:00
Rostislav Wolny
4f50c94dcb
Use new confirmation mailer send method with duplicate check
...
[MAILPOET-2876]
2020-09-09 13:09:06 +02:00
Pavel Dohnal
7b0c5e61fe
Use Newsletter entity in renderer
...
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
f8a16b5e5a
Remove public properties from renderer
...
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
7e0b536ff4
Use Di for newsletter renderer
...
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
fbc6786058
Split class to prevent circular dependency
...
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
c3686d9973
Move data from constructor
...
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
wxa
aac8619f8f
Subscribe to custom lists on WC checkout [MAILPOET-2897]
2020-05-27 13:30:05 +02:00
Jan Jakeš
f986da4d7f
Return input & output filters back to API endpoint
...
[MAILPOET-2900]
2020-05-25 17:49:07 +02:00
Pavel Dohnal
4396f8370b
Send confirmation email on wc checkout
...
[MAILPOET-2799]
2020-04-02 14:24:38 +02:00
Rostislav Wolny
daf5bafe93
Strip unwanted tags from WooCommerce mail footer text
...
When we initially generate WooCommerce transactional email template
we must exclude tags that can't be inserted to paragraph tag.
[MAILPOET-2821]
2020-03-29 21:39:01 +02:00
Jan Jakeš
1774b48666
Autofix unused "use" statements
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
b39dac75d6
Autofix number of newlines between methods
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
835d8bc0af
Fix PHPUnit 6 & Codeception\Verify incompatibilities
...
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00
Jan Jakeš
94afd66325
Convert properties not caught by Code Sniffer to camel case
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
8c848cfa28
Convert property names to camel case
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
54549ff037
Convert variable names to camel case
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
wxa
7285a4a075
Fix extra arguments in method calls [MAILPOET-2488]
2019-12-30 14:51:22 +01:00
wxa
1d757e1374
Fix undefined properties in tests [MAILPOET-2488]
2019-12-30 14:51:22 +01:00
Amine Ben hammou
43df66d162
Add public keyword to methods
...
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
wxa
d84c45e5f1
Fix colors in rendering [MAILPOET-2569]
2019-12-23 21:55:40 +03:00
wxa
fa81c24825
Sync WC customizer styles to WooCommerce settings [MAILPOET-2569]
2019-12-23 21:55:40 +03:00
Rostislav Wolny
c5314abfd4
Move css-tidy to MailPoetVendor prefixed libraries
...
[MAILPOET-2563]
2019-12-12 12:46:19 +00:00
wxa
ed6bc90754
Add global styles for use in WC header and content blocks [MAILPOET-2521]
2019-12-11 18:22:46 +00:00
Amine Ben hammou
2c0f16b0dd
Fix tests and default values
...
[MAILPOET-2286]
2019-11-28 14:07:38 +00:00
Amine Ben hammou
a5dc30c4b6
Use Doctrine to create the newsletter
...
[MAILPOET-2286]
2019-11-28 14:07:38 +00:00
Amine Ben hammou
a178b5d1e8
Use DI to inject csstidy
...
[MAILPOET-2286]
2019-11-28 14:07:38 +00:00
Amine Ben hammou
aa129f5987
Use template for WooCommerce transactional emails
...
[MAILPOET-2286]
2019-11-28 14:07:38 +00:00
Amine Ben hammou
f56ced0ef5
Add Email renderer
...
[MAILPOET-2286]
2019-11-28 14:07:38 +00:00
Jan Jakeš
60889c53f4
Add Idiorm to MailPoetVendor namespace
...
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00
wxa
68eb3ade6e
Customize the WC transactional email template based on WC settings [MAILPOET-2339]
2019-11-06 17:06:07 +00:00
Jan Jakeš
d970dda637
Replace "new SettingsController()" with fetch from DI container
...
[MAILPOET-2436]
2019-11-06 16:32:32 +00:00
Jan Jakeš
1b5b9d89ff
Autofix namespace declaration spacing
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Amine Ben hammou
5e5c744c3d
Create WC transactional email
...
[MAILPOET-2280]
2019-09-22 10:34:06 +02:00
Pavel Dohnal
ea0a3ff159
Update global status on unsubscribe
...
[MAILPOET-2320]
2019-09-04 11:40:54 -04:00
Pavel Dohnal
5da7110eb6
Use short array syntax
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
wxa
2980bbf00b
Remove the feature flag [MAILPOET-1983]
2019-05-13 10:47:09 -04:00
wxa
ecf0fe63c0
Add a feature flag [MAILPOET-1483]
2019-04-29 09:33:12 -04:00
wxa
9f2eb3547c
Add integration tests for WC checkout opt-in [MAILPOET-1483]
2019-04-29 09:33:12 -04:00