Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Owen 123 posts 246 karma points
    Jul 16, 2015 @ 14:17
    Owen
    0

    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:

    var warehouse = MerchelloContext.Current.Services.WarehouseService.GetDefaultWarehouse();
    var warehouseCatalogue = MerchelloContext.Current.Services.WarehouseService.CreateWarehouseCatalogWithKey(warehouse.Key,"Default Catalogue","description");
    product.AddToCatalogInventory(warehouseCatalogue);
    

    But doesn't seem right.

    Cheers, Owen

Please Sign in or register to post replies

Write your reply to:

Draft