QuestionQ10

Layout/UI

A client wants to place an image icon before the telephone field in the shipping-address form on the checkout page.

What is the proper way to modify the UI component to assign a custom template file to that field?

  • A
  • B
  • C
Explanation

Adobe Commerce configures the checkout telephone field within the jsLayout array. Its template override belongs in the field’s config array as elementTmpl, using the module template path %Vendor_Module%/form/element/%your_template%. This allows a custom Knockout template to render the field and its additional image content.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!