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
10 months agoReita
10 months agoMyra
10 months agoHillary
10 months agoNaomi
10 months agoAngelica
11 months agoBrandee
11 months agoJules
11 months agoSvetlana
11 months agoLatrice
11 months agoGenevive
11 months agoErick
11 months agoEstrella
11 months agoKaycee
2 years agoTyra
2 years agoLeoma
2 years agoGearldine
2 years agoJanna
2 years agoShonda
2 years agoElmer
2 years agoLeota
2 years agoBrice
2 years agoMarva
2 years agoCandra
2 years agoHailey
2 years agoBlair
2 years agoEarnestine
2 years agoIzetta
2 years agoSelma
2 years agoRosendo
2 years agoJules
2 years agoAlfred
2 years agoArmanda
2 years agoEladia
2 years agoOliva
2 years agoMerilyn
2 years 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