Skip to content

multistore

Auto Added by WPeMatico

Magento 2.4 – Programmatically Created Categories in Multi-Store Collide

I have a Magento 2.4.3 multi-store and I am currently creating categories programmatically, with the following code: $category = $objectManager->create(‘MagentoCatalogModelCategory’, [‘data’ => [“name” => $refCat[‘name’], “is_active” => $refCat[‘active’], “include_in_menu” => $refCat[‘menu’], “parent_id” => $parentID, “store_id” => $refCat[‘store_id’]]]); $category->setCustomAttributes([“display_mode” => “PRODUCTS”,… Read More »Magento 2.4 – Programmatically Created Categories in Multi-Store Collide

Get product using SKU with respect to the store data using Magento 2 REST API

I use the core API /V1/products/:sku to get the product using the SKU. for example, I have 2 stores, one in English and another in Japanese. My API Endpoint is like http://local.mystore.com/storefront/en-us/rest/V1/products/myproduct for the English store and http://local.mystore.com/storefront/en-jp/rest/V1/products/myproduct for the… Read More »Get product using SKU with respect to the store data using Magento 2 REST API