- Issue created by @aleix
- last update
10 months ago 17 pass, 1 fail - Status changed to Needs review
10 months ago 4:35pm 17 January 2024 - 🇪🇸Spain aleix
The proposal is to add again the theming, I have tested and it doesn't exclude layout builder.
- last update
10 months ago 17 pass, 1 fail The last submitted patch, 4: theming-3415300-4.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- last update
10 months ago 17 pass, 1 fail - last update
10 months ago 18 pass - Status changed to Needs review
10 months ago 4:35pm 19 January 2024 - 🇧🇪Belgium mgstables
Tested it on a new Drupal 10 installation.
I copied the two files (commerce-ticket.html.twig, commerce-ticket--receipt.html.twig) and placed them in my theme folder and adjusted them.I was able to add extra fields of the Productvariation-type myself with the following code:
{{ commerce_ticket.getOrderItem.getPurchasedEntity|commerce_entity_render('field_info') }}
This also works fine and the product variation field is retrieved and displayed.It works on the site and via the emails sent after completing the order.
I also created an extra twig "commerce-ticket--pdf.html.twig" and this worked fine too.There was an issue resending the tickets. The twigs in my custom theme are not picked up, but only the standard "commerce-ticket.html.twig" of the module for both, the "receipt mail" and the PDF.
Drupal 10.2.2
PHP 8.2.13
Commerce 8.x-2.38
Entity Print 8.x-2.13 (with patch: https://www.drupal.org/project/entity_print/issues/3383187 🐛 Unexpected error with print engine PhpWkhtmlToPdf or DomPdf: Session has not been set Needs review )
Mail System 8.x-4.4
Mime Mail 8.x-1.0-alpha6 (with patch: https://www.drupal.org/project/mimemail/issues/2904611 🐛 Seeing errors when sending a mail with files attached as file contents RTBC )
PHPMailer SMTP 2.2.4 - 🇪🇸Spain aleix
@mgstables
If using symfony mailer, the use of the plugin proposed in https://www.drupal.org/project/commerce_ticketing/issues/3416185 ✨ Symfony mailer plugin Needs review helps in creating the pdf with the active theme. Take care that it is waiting to be reviewed