php - How custom template implement in opencart -
i new in opencart, have installed opencart 2.3.0.2 in xampp server. have custom html template. how implement in opencart ? can use template in same store(opencart default) or ? alot.
make copies…
to start copy default folder found in upload/catalog/view/theme/default new folder in same directory. name “mytheme“.
then copy theme_default.php file in upload/admin/controller/extension/theme , place in same directory. name “mytheme.php“.
- rename class (line 2):
controllerextensionthememytheme + replace “theme_default” text “mytheme“. yes there lot (197).
copy theme_default.tpl in upload/admin/view/template/extension/theme , place in same directory. name “mytheme.tpl“.
- replace “theme_default” text “mytheme“. (48)
copy theme_default.php in upload/admin/language/en-gb/extension/theme , place in same directory. name “mytheme.php“.
- set new theme’s title in heading_title (line 3) “my theme”.
finally thumnail image show correctly in store settings rename default.png mytheme.png in upload/catalog/view/theme/mytheme/image go administration > extensions > extensions , select themes in “choose extension type”. should seeing new theme. install green (+) button , edit enable it. ensure set correct theme directory whilst editing theme!
then in system > settings edit store use new theme.
that should it. can go ahead , start chopping , changing default theme.
Comments
Post a Comment