Brezo Cordero
683c5fa01f
Fix subscribe on Order Pay form
...
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Rostislav Wolny
1aef43cfc9
Add classed to Woo checkout optin to match other checkboxes
...
[MAILPOET-3498]
2021-09-13 10:25:35 +02:00
Rostislav Wolny
8df940e02c
Add strict types to newly added classes
...
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
62ae0db39e
Update subscribers last engagement when they create new order
...
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
54c83a0dac
Fix woo transactional email heading rendering
...
[MAILPOET-3758]
2021-08-31 12:23:02 +02:00
Rostislav Wolny
3e57bc187f
Fix subscriber in subscription via checkout for older WooCommerce
...
We use hidden field to indicate that the option checkbox was rendered.
The support for the hidden field was added in Woo 4.6.0 (51afe3207a (diff-019fb1a3da8e1f8d9f148c7407195e640587dfeb3e7830ef8e8fa6f29aa0a6ed)
)
This commit adds a workaround that can be removed we drop support of older WooCommerce versions.
[MAILPOET-3772]
2021-08-31 12:22:01 +02:00
Rostislav Wolny
35058bca63
Add unsubscribes tracking for WooCommerce checkout
...
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
3cedca311d
Unsubscribe on checkout only when opt-in is checkbox is present
...
This change unifies behaviour with registration page opt-in checkbox.
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
12c9019939
Mark customers without optin as unsubscribed
...
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
b46335a562
Fix filter for rendering WooCommerce checkou optin
...
Without the return argument the input is immediately rendered
and the function returns null. The filter than received null
instead of HTML string and the input was already rendered before
the filter was called.
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Pavel Dohnal
99963240b5
Add a code comment
...
[MAILPOET-3017]
2021-06-15 13:21:49 +02:00
Pavel Dohnal
ad330bff64
Gracefuly handle missing WC transactional template
...
[MAILPOET-3017]
2021-06-15 13:21:49 +02:00
Rostislav Wolny
a382ba8635
Prevent overriding woo settings if woo template is not set
...
[MAILPOET-3645]
2021-06-14 14:30:01 +02:00
Rostislav Wolny
d5f6f63ebe
Use option filters instead of synchronization Woo email styles
...
With this change the Woo template editor will never overwrite Woo commerce settings,
but replace values of those settings using hooks.
[MAILPOET-3645]
2021-06-14 14:30:01 +02:00
Rostislav Wolny
7158f879aa
Refactor fetching newsletter in TransactionalEmailHooks to doctrine
...
[MAILPOET-3645]
2021-06-14 14:30:01 +02:00
Jan Lysý
136329b5a3
Use inline style for correct padding in WC emails
...
[MAILPOET-3638]
2021-06-14 09:46:19 +02:00
Jan Lysý
f3586dfe2e
Create WC content preprocessor
...
[MAILPOET-3638]
2021-06-14 09:46:19 +02:00
Jan Lysý
3aa84cf9c1
Add width to wrapper table
...
[MAILPOET-3638]
2021-06-14 09:46:19 +02:00
Jan Lysý
9883d676ed
Wrap WC content with table
...
[MAILPOET-3638]
2021-06-14 09:46:19 +02:00
Jan Lysý
5ef632bacd
Add missing div element with ID for WooCommerce emails
...
[MAILPOET-3485]
2021-05-17 09:57:56 +02:00
Rostislav Wolny
0a0c63cd1f
Show only allowed countries in options for customer country segment
...
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
173a4a124c
Load WooCommerce countries for segment form
...
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Jan Lysý
5b194018fc
Add getter for currency symbol to WC helper
...
[MAILPOET-3227]
2021-04-26 11:29:48 +02:00
wxa
37ac7fd381
Remove unused imports
...
[MAILPOET-3484]
2021-03-29 14:31:44 +02:00
Jan Lysý
dffaab10a2
Use getCurrentWPUser from SubscribersRepository
...
[MAILPOET-3268]
2021-03-16 14:39:47 +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ý
9e9270f13b
Use email heading from Woo for email header
...
We want to use email heading from Woo in title of rendered email for
WooCommerce Transactional Email.
[MAILPOET-3329]
2021-01-25 11:08:00 +01:00
wxa
f571506129
Use woocommerce_form_field for WC checkout optin [MAILPOET-2925]
2021-01-04 14:22:42 +01:00
wxa
ce27fd08fe
Add customize button above WC email settings table [MAILPOET-2584]
2020-11-12 16:49:20 +01:00
wxa
fd6ff25cd9
Make render preview call more readable [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
Rostislav Wolny
9f5b8d042f
Refactor subscription opt-in in WooCommerce acceptance tests
...
[MAILPOET-2992]
2020-06-25 16:15:43 +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
fa9203ce50
Refactor the code
...
[MAILPOET-2799]
2020-04-02 14:24:38 +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š
b39dac75d6
Autofix number of newlines between methods
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
3bbc8ea2af
Convert variable names to camel case in strings
...
[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
Amine Ben hammou
43df66d162
Add public keyword to methods
...
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
wxa
20d42af4dc
Remove the WC customizer feature flag [MAILPOET-2285]
2019-12-24 17:01:32 +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
wxa
f9ec25213d
Always fetch styles from WooCommerce [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