Commerce Order config value receiptSubject ("Subject for the order receipt email") is not translatable

Created on 12 August 2023, over 1 year ago
Updated 14 August 2023, over 1 year ago

Problem/Motivation

In Provide a way to customize the order receipt email subject Fixed the receiptSubject config variable for order confirmation emails was introduced.

It's for the field "Subject for the order receipt email" at /admin/commerce/config/order-types/default/edit

The field was added as:

    receiptSubject:
      type: string

but string isn't correct, as the subject needs to be translatable. This is an issue for multilanguage commerce projects.

See these commits:
https://git.drupalcode.org/project/commerce/-/commit/49bcf2ca6c99efd04bd...
https://git.drupalcode.org/project/commerce/-/commit/cfeb17b765ca4243012...

Steps to reproduce

Try translating the subject and find no way to do it

Proposed resolution

Change the schema to

    receiptSubject:
      type: label

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

2.0

Component

Checkout

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024