Hello everyone,
My magento 2 is configured in multi-shop.
Both shops use the same template path.
I would like each call its own file items.phtml but the path is the same for both :
/magento/app/design/frontend/Mgs/unero/Magento_Catalog/templates/product/list
Can you help me ?
Yours truly
Solved! Go to Solution.
Hi @misteradmin
In items.phtml you can check current store id. And on that base you can execute different code for the shops. Like
if(current_store_id==1){
}elseif(current_store_id==2){
}
https://www.webetutorial.com/question/magento2-get-current-store-id-or-website-id/
Hi @misteradmin
In items.phtml you can check current store id. And on that base you can execute different code for the shops. Like
if(current_store_id==1){
}elseif(current_store_id==2){
}
https://www.webetutorial.com/question/magento2-get-current-store-id-or-website-id/