Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to add SKU or other fields (attributes size, color, images) to the commerce-order-receipt.html.twig?
Comments
Comment #2
mandus.cz CreditAttribution: mandus.cz commentedThis problem is solved as follows:
1) edit fields in /admin/commerce/config/product-variation-types/default/edit/display/summary
2) add {{ order_item.getPurchasedEntity|commerce_entity_render('summary') }} in commerce-order-receipt.html.twig
Comment #3
demonde CreditAttribution: demonde commentedThe simpler way to solve this would be to just add
Comment #4
jsacksick CreditAttribution: jsacksick at Centarro commentedComment #6
Drupal_hippie CreditAttribution: Drupal_hippie commented@demonde
How to see all available options for getPurchasedEntity?
I want to add a product thumbnails to my order confirmation letter products.