ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 1 - AD0-E720 discussion

Report
Export

The merchant needs to create a new website, and is need modify a template the third party vendor's, because the customer is different. The file is found in a module here: app/code/Vendor/Module

Keep it simple in your mind!

A.
Create another layout for the new website and configure new file.phtml. app/code/Vendor/Module/view/frontend/templates/file.phtml
Answers
A.
Create another layout for the new website and configure new file.phtml. app/code/Vendor/Module/view/frontend/templates/file.phtml
B.
Create a new module for extends layout.xml and include new file.phtml. app/code/Vendor/Module_Two/view/frontend/templates/file.phtml
Answers
B.
Create a new module for extends layout.xml and include new file.phtml. app/code/Vendor/Module_Two/view/frontend/templates/file.phtml
C.
Create a new theme, define a new website and customize in app/design. app/design/frontend/Custom/Theme/Vendor_Module/templates/file.phtml
Answers
C.
Create a new theme, define a new website and customize in app/design. app/design/frontend/Custom/Theme/Vendor_Module/templates/file.phtml
Suggested answer: C

Explanation:

The best way to customize a template file from a third-party module is to create a new theme that inherits from the parent theme and override the template file in the app/design/frontend/Custom/Theme/Vendor_Module/templates directory. This way, the customization is isolated from the original module and can be applied to a specific website or store view. Creating another layout file or a new module would not be as simple or flexible as creating a new theme.

Reference:Frontend development guide, [Create a theme], [Theme inheritance]

asked 02/10/2024
Yohane Phompho
33 questions
NextNext
User
Your answer:
0 comments
Sorted by

Leave a comment first