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