1

I want to create CMS block with same identifier. For ex. Testing is my identifier. But, content of testing is different in German store view and Russia store view.

How to create store vise CMS block with same identifier ?

Please help me.

Any help would be appreciated.

  • Yes that's possible by default. If you have multiple stores then by default when you create a block it will opt an option called multiple stores – Prathap Gunasekaran May 25 at 8:04
  • It will store content in same id. But, I want like when I store switch then it will display that store content. – Mayur Jotaniya May 25 at 8:07
  • I found from where I can able to do that. vendor/magento/module-cms/Model/ResourceModel/Block.php .... function getIsUniqueBlockToStores() – Mayur Jotaniya May 25 at 8:09
  • if (!$isDefaultStore) { // $select->where('cbs.store_id IN (?)', $stores); } I need to comment this code and add this line $select->where('cbs.store_id = ' . $stores[0]); But how to override or by plugin? Is it possible? – Mayur Jotaniya May 25 at 8:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.