Standardize support text in block email templates#63463
Standardize support text in block email templates#63463pavel-mailpoet merged 3 commits intotrunkfrom
Conversation
Ensure all customer-facing order and fulfillment block email
templates use consistent closing text with the store email:
"Thanks again! If you need any help with your order, please
contact us at {store-email}."
Fixes trailing commas, missing "Thanks again!" prefix, and
replaces unrelated closing copy in fulfillment templates.
Testing GuidelinesHi @triple0t , Apart from reviewing the code changes, please make sure to review the testing instructions (Guide) and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. Reminder: PR reviewers are required to document testing performed. This includes:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
🚧 Files skipped from review as they are similar to previous changes (6)
📝 WalkthroughWalkthroughUpdates standardized closing/support text across multiple WooCommerce block email templates: adds "Thanks again!" to several messages, converts some static lines to translatable printf strings with a store-email placeholder, and fixes minor punctuation in a few translations. Changes
Sequence Diagram(s)(omitted — changes are textual template updates without new multi-component control flow) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit. |
Submission Review Guidelines:
Changes proposed in this Pull Request:
Standardize the closing support text across all customer-facing block email templates to a consistent message:
Previously, each template had different closing text (e.g. "We hope to see you again soon", "If anything looks off…", "Please note that couriers may need some time…"). This unifies them per the design spec.
Closes https://linear.app/a8c/issue/WOOPRD-2478
How to test the changes in this Pull Request:
Enable the block email editor feature flag at:
WP Admin → WooCommerce → Settings → Advanced → Features(check "Block email editor" and save).
Reset existing email templates: Reset templates first:
pnpm --filter=@woocommerce/plugin-woocommerce -- wp-env run cli bash -c "wp post delete \$(wp post list --post_type=woo_email --format=ids) --force && wp transient delete wc_email_editor_initial_templates_generated"Then visit any WooCommerce admin page — the templates will be regenerated from the updated PHP files.
Create a test order (WP Admin → WooCommerce → Orders → Add new) with a customer that has an email address, then trigger email and verify the closing paragraph in Mailpit.
{store admin email}placeholder is replaced with the actual store admin email addressMilestone
Changelog entry
Changelog Entry Details
Significance
Type
Message
Standardize closing support text across all customer-facing block email templates.