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
24 days agoElmer
2 days agoLeota
6 days agoBrice
27 days agoMarva
6 days agoCandra
13 days agoHailey
20 days agoBlair
2 months agoEarnestine
2 months agoIzetta
7 days agoSelma
8 days agoRosendo
9 days agoJules
10 days agoAlfred
11 days agoArmanda
21 days agoEladia
28 days agoOliva
2 months agoMerilyn
18 days agoBeatriz
22 days agoYoko
27 days agoTawanna
1 months agoLong
2 months agoViki
2 months agoMyra
2 months agoHeike
2 months agoDaniel
2 months ago