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