Developer forum

Forum » Integration » Importing stock units, how to get output in product.units

Importing stock units, how to get output in product.units

Hans Kloppenborg
Reply

Hello,

We have a custom integration where we fill the following tables to get stock units (piece, box, pallet etc.) for our product-variants:

  • EcomStockUnits
    
  • EcomPrices
    
  • EcomProductVariantOptions
    

This seems to work since I can see them in the CMS on the masterproduct with the data I expect.

But when I check on master or variant product (from productservice since the product ViewModel seems to be missing this) the product.Units property seems always to contain 0 records.

Am I forgetting something? Anyone has experience with this?

Greets Hans


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You have to clear the cache. Application.KillAll() after import.

 

You must be logged in to post in the forum