M
M
Mavran2015-01-25 13:09:41
CMS
Mavran, 2015-01-25 13:09:41

Where is the skeleton of the index page on the Opencart engine?

There is an index.php file in the Opencart folder, I go there but there are no html tags, only php tama. I want to change the page of the main site, but I can't find this file, where is it located?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nowm, 2015-01-25
@Mavran

I first tried to explain how Opencart works so that you can easily find out later which templates are used on a particular page, but it turns out that this will be too voluminous. Therefore, I will present a situation where a standard Opencart installation is used.
Header of HTML code, page header, plus category drop-down menu, plus notifications — <site root>/catalog/view/theme/<template name>/template/common/header.tpl
Footer — <site root>/catalog/view /theme/<template name>/template/common/footer.tpl
Content - depends on the current path. For example, if the current path is product/product (product page), then the template can be found in <site root>/catalog/view/theme/<template name>/template/product/product.tpl. If the root page of the site (you named it index ), then its template is located in <site root>/catalog/view/theme/<template name>/template/common/home.tpl .
Left column - <site root>/catalog/view/theme/<template name>/template/common/column_left.tpl
Right column - <site root>/catalog/view/theme/<template name>/template/common/column_right .tpl
Service part before content — <site root>/catalog/view/theme/<template name>/template/common/content_top.tpl
Service part after content — <site root>/catalog/view/theme/<template name> /template/common/content_bottom.tpl
<template name> can be found on the store settings page in the admin panel: Admin panel → System menu → Settings item → Edit link next to the current configuration → Store tab → Template item.
All content is usually composed of these chunks.
The right and left columns, as well as service parts before and after the content are usually filled with modules - depending on the settings of the modules. These four templates are best left untouched unless you're completely sure what you're doing.

K
Kolya K, 2015-01-25
@Kolyagrozamorey

catalog/view/theme/default/template/common
default - template name may be different

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question