Problem/Motivation
An order confirmation email is rendered with the template shipping with commerce core if the email is resend using the respective button in the backend.
Steps to reproduce
- Setup commerce, postoffice, postoffice commerce, a custom theme, customize
postoffice-commerce-email.html.twig - Create a new order, capture order receipt email, observe that the custom template was used.
- Navigate to the order in the commerce core backend and resend the confirm email.
- Capture order receipt email and observe that the default template was used.
Proposed resolution
Introduce an OrderReceiptEmail class with a buildThemedEmail() method which builds the commerce_order_receipt render array from scratch.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork postoffice_commerce-3343644
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
znerol commentedComment #5
znerol commented