2

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.

4
  • 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 May 25, 2019 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. May 25, 2019 at 8:07
  • I found from where I can able to do that. vendor/magento/module-cms/Model/ResourceModel/Block.php .... function getIsUniqueBlockToStores() May 25, 2019 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? May 25, 2019 at 8:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.