cancel
Showing results for 
Search instead for 
Did you mean: 

Magento multi-shop, different product page

SOLVED

Magento multi-shop, different product page

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento multi-shop, different product page

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/

If my answer is helpful, please Accept as Solution & give Kudos

View solution in original post

1 REPLY 1

Re: Magento multi-shop, different product page

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/

If my answer is helpful, please Accept as Solution & give Kudos