I am working on multi store magento setup. I used conditional statement for specific view in particular store in 1column.phtml
file.I override the local.xml
file also its worked for me,but i want separate 1column.phtml
file for each store.
我相信您可以为每个商店设置不同的主题,每个主题在template / page / 1column.phtml中只有一个文件夹,并使用后备机制使用其他功能。
you need to try manual action where need your store id with this code
<?php if (Mage::app()->getStore()->getStoreId() == 9): ?>
'9' is your store ID (just for example) it's work for me. so you can test and let me know if problem :)
The cleanest solution is to change which template is loaded in the controller based on the store id.
if ($storeId == 2) {
$this->getLayout()->getBlock($oneColumnBlock)->setTemplate($yourCustomTemplate);
}
We can do this by FallBack mechanism as Blastfreak suggest me. My folder structure is:- app/design/frontend/stores/store1/template/page/1column.phtml
stores is my package store1 is my theme
And i set Current Package Name = stores in admin panel. And Edit my CMS home-page ->Click on design tab->go to Custom Design->select custom theme to store1 under store package. Thats it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.