how to get shared catalog data by ID in Magento 2?

Magento gives you the ability to maintain shared catalogs with the custom pricing structure for different companies. 

You can get Shared Catalog data by shared catalog id programmatically.
Magento\SharedCatalog\Api\SharedCatalogRepositoryInterface Interface used to get, delete and save  Shared catalog related things.

You can then use it using by calling function $this->getSharedCatalog();

If you will print the output of the function it will return result like below.

Output :

As you can see in the above result, you will get shared catalog-related data like Id, Name, Customer Group Id, etc.

You will also like this :

Get Company Admin using company ID programmatically Magento 2 B2B.

That’s it. Thanks for reading. Keep coding !!

Leave a Reply

Your email address will not be published. Required fields are marked *