I'm trying to create the product via API, and I'm wondering how to add "Item location" via API.
Could you share an example to me?
I have tried below:
var warehouse = MerchelloContext.Current.Services.WarehouseService.GetDefaultWarehouse();
var warehouseCatalogue = MerchelloContext.Current.Services.WarehouseService.CreateWarehouseCatalogWithKey(warehouse.Key,"Default Catalogue","description");
product.AddToCatalogInventory(warehouseCatalogue);
How to add product location via API
Hey,
I'm using Merchello 1.9.0
I'm trying to create the product via API, and I'm wondering how to add "Item location" via API.
Could you share an example to me?
I have tried below:
But doesn't seem right.
Cheers, Owen
is working on a reply...