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.
Chu
4 months agoReita
5 months agoMyra
5 months agoHillary
5 months agoNaomi
5 months agoAngelica
6 months agoBrandee
6 months agoJules
6 months agoSvetlana
6 months agoLatrice
6 months agoGenevive
6 months agoErick
6 months agoEstrella
6 months agoKaycee
2 years agoTyra
1 year agoLeoma
1 year agoGearldine
1 year agoJanna
1 year agoShonda
1 year agoElmer
1 year agoLeota
1 year agoBrice
2 years agoMarva
1 year agoCandra
1 year agoHailey
1 year agoBlair
2 years agoEarnestine
2 years agoIzetta
1 year agoSelma
1 year agoRosendo
1 year agoJules
1 year agoAlfred
1 year agoArmanda
1 year agoEladia
2 years agoOliva
2 years agoMerilyn
1 year agoBeatriz
2 years agoYoko
2 years agoTawanna
2 years agoLong
2 years agoViki
2 years agoMyra
2 years agoHeike
2 years agoDaniel
2 years ago