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

  1. Setup commerce, postoffice, postoffice commerce, a custom theme, customize postoffice-commerce-email.html.twig
  2. Create a new order, capture order receipt email, observe that the custom template was used.
  3. Navigate to the order in the commerce core backend and resend the confirm email.
  4. 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

Command icon 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

znerol created an issue. See original summary.

znerol’s picture

Status: Active » Needs review

  • znerol committed d8df16a7 on 1.0.x
    Issue #3343644 by znerol: Resending the confirmation email is rendered...
znerol’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.