The entity print template for an order receipt is always default

Created on 11 June 2024, 6 months ago

Describe your bug or feature request.

We have several types of orders on the site and want to use separate templates for the printable version of the order receipt (/print/pdf/commerce_order/order_id/debug).
But the default template always uses commerce-order-receipt--entity-print.html.twig and the template created for the order bundle is never selected.
See screenshot for details:

Template commerce-order-receipt--entity-print--quote.html.twig created but never used. Same problem for the Default order type, even if the commerce-order-receipt--entity-print--default.html.twig template is created, the default commerce-order-receipt--entity-print.html.twig is always used.

πŸ› Bug report
Status

Active

Version

2.0

Component

Order

Created by

πŸ‡ΊπŸ‡¦Ukraine marchuk.vitaliy Rivne, UA

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

Comments & Activities

Production build 0.71.5 2024