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
3 months agoTyra
2 months agoLeoma
2 months agoGearldine
2 months agoJanna
2 months agoShonda
2 months agoElmer
3 months agoLeota
3 months agoBrice
3 months agoMarva
3 months agoCandra
3 months agoHailey
3 months agoBlair
4 months agoEarnestine
4 months agoIzetta
3 months agoSelma
3 months agoRosendo
3 months agoJules
3 months agoAlfred
3 months agoArmanda
3 months agoEladia
3 months agoOliva
4 months agoMerilyn
3 months agoBeatriz
3 months agoYoko
3 months agoTawanna
4 months agoLong
4 months agoViki
4 months agoMyra
4 months agoHeike
4 months agoDaniel
4 months ago