Answer the question
In order to leave comments, you need to log in
How to output fields from TWIG template commerce-checkout-form?
Plz tell me how to display the required form fields separately and not the entire form.
I copied the template commerce-checkout-form--with-sidebar.html.twig into my theme
, the whole form (all fields) is displayed:
{{ form|without('sidebar', 'actions') }}
I need to display the fields separately, can anyone know how?
looking with devel {{ dd(form) }}
form => order_fields:checkout => field_phone
how to write in the template?
poke method does not work :(
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question