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