Мне трудно определить, какой шаблон будет использовать домашняя страница magento.
К сожалению, этот проект не был запущен мной, я просто даю преемственность, и мои знания о magento очень скудны.
Внутри папки шаблона находится папка «Макет» с XML-кодом, связанным с макетом.
В этой папке «общий» xml называется local.xml
<cms_index_index>
<reference name="root">
<action method="setTemplate"><template>page/homepage.phtml</template></action>
</reference>
<!-- Right column ====================================================================== -->
<reference name="left">
<!-- Disable left sidebar blocks on home page -->
<action ifconfig="mtquartz/sidebar_blocks_home/compare" method="unsetChild"><name>catalog.compare.sidebar</name></action>
<action ifconfig="mtquartz/sidebar_blocks_home/compared" method="unsetChild"><name>right.reports.product.compared</name></action>
<action ifconfig="mtquartz/sidebar_blocks_home/viewed" method="unsetChild"><name>left.reports.product.viewed</name></action>
<action ifconfig="mtquartz/sidebar_blocks_home/wishlist" method="unsetChild"><name>wishlist</name></action>
<action ifconfig="mtquartz/sidebar_blocks_home/poll" method="unsetChild"><name>right.poll</name></action>
<action ifconfig="mtquartz/sidebar_blocks_home/tags" method="unsetChild"><name>tags_popular</name></action>
<action ifconfig="mtquartz/sidebar_blocks_home/paypal" method="unsetChild"><name>paypal.partner.right.logo</name></action>
<remove name="left.reports.product.viewed" />
</reference>
<!-- Left column ====================================================================== -->
<reference name="right">
<!-- Disable right sidebar blocks on home page -->
<action ifconfig="mtquartz/sidebar_blocks_home/paypal" method="unsetChild"><name>paypal.partner.right.logo</name></action>
</reference>
</cms_index_index>
По какой-то причине это условие cms_index_index не вступает в силу, оно не ищет homepage.phtml, но всегда 1column.phtml.
Этот код уже был в XML, я пытаюсьчтобы понять, почему это не работает.