An Adobe Commerce developer created a module called Orange_Customer. In customer information.
Where would the developer place this file?
To place a template file for a custom module, the developer should follow this path pattern:
app/code/<Vendor>/<Module>/view/<Area>/templates/<Template>
In this case, the vendor name is Orange, the module name is Customer, the area is frontend, and the template name is customer-info.phtml. Therefore, the correct path is:
app/code/Orange/Customer/view/frontend/templates/customer-info.phtml
The following paths are not correct and will not work:
app/code/Orange/customer/view/frontend/web/templates/customer-info.phtml: This path is incorrect because it uses web instead of templates, which is used for storing web assets like CSS, JS, and images, not template files.
app/code/Orange/Customer/frontend/templates/customer-info.phtml: This path is incorrect because it misses the view directory, which is required for separating frontend and backend templates.
Kaycee
2 months agoTyra
20 days agoLeoma
22 days agoGearldine
24 days agoJanna
25 days agoShonda
1 months agoElmer
1 months agoLeota
1 months agoBrice
2 months agoMarva
1 months agoCandra
2 months agoHailey
2 months agoBlair
3 months agoEarnestine
3 months agoIzetta
1 months agoSelma
1 months agoRosendo
1 months agoJules
1 months agoAlfred
1 months agoArmanda
2 months agoEladia
2 months agoOliva
3 months agoMerilyn
2 months agoBeatriz
2 months agoYoko
2 months agoTawanna
2 months agoLong
3 months agoViki
3 months agoMyra
3 months agoHeike
3 months agoDaniel
3 months ago