Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E720 Exam - Topic 4 Question 59 Discussion

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/ModuleKeep it simple in your mind!
C) Create a new theme, define a new website and customize in app/design. app/design/frontend/Custom/Theme/Vendor_Module/templates/file.phtml
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

Adobe AD0-E720 Exam - Topic 4 Question 59 Discussion

Actual exam question for Adobe's AD0-E720 exam
Question #: 59
Topic #: 4
[All AD0-E720 Questions]

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!

Show Suggested Answer Hide Answer
Suggested Answer: C

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]


Contribute your Thoughts:

0/2000 characters
Deandrea
4 days ago
I prefer B. Creating a new module keeps things organized.
upvoted 0 times
...
Isadora
9 days ago
Option C sounds better. A new theme gives more flexibility.
upvoted 0 times
...
Myrtie
14 days ago
I think option A is the simplest. Just modify the existing layout.
upvoted 0 times
...
Altha
20 days ago
I agree with A, quick and easy solution!
upvoted 0 times
...
Markus
25 days ago
Wait, can you really just modify a third-party template like that?
upvoted 0 times
...
Hyman
30 days ago
C sounds like overkill for just a template change.
upvoted 0 times
...
Julio
1 month ago
I think B is better for future scalability.
upvoted 0 times
...
Alethea
1 month ago
Option A seems the simplest way to go.
upvoted 0 times
...
Novella
2 months ago
I practiced a similar question last week, and I think I chose option A. It seems straightforward to just create another layout for the new site.
upvoted 0 times
...
Glory
2 months ago
I feel like option C could be overkill unless the design needs a complete overhaul. But then again, a new theme might be the cleanest solution.
upvoted 0 times
...
Gwenn
2 months ago
I'm not entirely sure, but I remember something about creating a new module being a good practice for keeping things organized. Maybe option B is worth considering?
upvoted 0 times
...
Lyda
2 months ago
I think option A makes the most sense since we just need to modify the existing template for the new website.
upvoted 0 times
...

Save Cancel