0

I try to create a custom product template commerce-product.html.twig. The changes work well except except the title. https://docs.drupalcommerce.org/commerce2/developer-guide/products/displaying-products/theme-product says to use {{ product.title }} but nothing displays for this field. I try {{ node.title }} but it doesn't works so.

What's wrong ?

  • 1
    Try {{ product.label() }}. – user72672 Nov 28 '19 at 12:06
0

Finally, I've found the solution. title was deactivated on commerce/config/default/personnages/edit/display If activate, it well works.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.