QuestionQ10

Adobe Experience Manager Sites

An Adobe Commerce developer has created a module named Orange_Customer. In this module, the developer is adding a new .phtml file that will display customer information.

Where should the developer place this file?

  • A app/code/orange/Customer/view/frontend/web/templates/customer-info.phtml
  • B app/code/Orange/Customer/frontend/templates/customer-info.phtml
  • C app/code/Orange/Customer/view/frontend/templates/customer-info.phtml
Explanation

Storefront PHTML templates in an Adobe Commerce module are stored in <module_dir>/view/frontend/templates/<path_to_template>. For the Orange_Customer module, whose module directory is app/code/Orange/Customer, the template belongs at app/code/Orange/Customer/view/frontend/templates/customer-info.phtml.

Learn more

Community Discussion

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