Commit Graph

17 Commits

Author SHA1 Message Date
Rostislav Wolny
682e3424ad Remove comments about deleting checks for BC support
We can't be sure that after a year, all customers will re-save the email.
To avoid future issues, we will keep the check in place.
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
8c0af16cf5 Add support for heading font color to Woo transaction email renderer
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
560b5f37e6 Improve test coverage for Woo emails renderer
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
3b53c69eb7 Refactor modifications of styles from Woo to an extra method
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
e3d60252a8 Render heading font family in Woo transactional emails
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
6d2dc2fbf8 Apply heading font sizes to Woo content in emails
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
2fcca5fcb9 Add a check to apply style fixes only after the email was re-saved
Some styles newly applied for the Woo Content blocks might
make the blocks look broken (e.g., too big font applied on the order items table).
This commit adds a check for existing emails, and for sites with existing customized the Woo email template
they are not applied unless a user saves the email in the editor.
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
53ca386f7a Enforce a special heading color for the Woo email header
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
e62fca24dd Set font size for Woo content
This set font size for the WooContent block.
The font size is applied to elements that don't have an inlined font size.
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
bb9b56a04d Enforce the same font family for headings in the Woo transaction email.
In the Woo email customizer, we have only one font family.
The newsletter data carry different default font families for headings.
In this commit, we enforce that the renderer uses the same font family
for text and headings.
This only applies to the part of the email that is handled by the MailPoet renderer.
The part that comes from the Woo itself is handled differently.
See previous commits.
I used clone to make sure we don't accidentally save the settings.
It wouldn't probably cause any damage because we don't expose these settings to users, but to be safe.
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
c3b3df325b Replaced inlined font-family definitions in email content from Woo
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Rostislav Wolny
49ca792fc2 Use font family from Woo Customizer in Woo email styles
Woo has a stylesheet that is later inlined into the email content by Emogrifier.
In this commit I replace all font family declarations by the font family set
in the Woo customizer.
[MAILPOET-4180]
2024-07-29 14:41:43 +02:00
Oluwaseun Olorunsola
feba707c76 Use dependency injection (DI) for process shortcodes
MAILPOET-5110
2023-04-03 13:36:04 +02:00
Oluwaseun Olorunsola
c75dc63cc5 Process Shortcodes in WooCommerce custom template
MAILPOET-5110
2023-04-03 13:36:04 +02:00
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Sam Najian
930024101f Exchange Transactional renderer to NewsletterEntity
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00