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