0
我使用Mgento休息來獲得庫存物品和產品。我想加入結果(我想獲得包含sku &數量的產品)。我必須使用哪個鍵來加入?magento rest加入stockitems產品
<item_id>576</item_id> = <entity_id>576</entity_id>
或
<product_id>576</product_id> = <entity_id>576</entity_id>
?
stockitem:
<data_item>
<item_id>576</item_id>
<product_id>576</product_id>
<stock_id>1</stock_id>
<qty>100500.0000</qty>
...
</data_item>
產品:
<data_item>
<entity_id>576</entity_id>
<attribute_set_id>4</attribute_set_id>
<type_id>simple</type_id>
<sku>501cap00001</sku>
...
</data_item>
加入正確的做法是在stockItem.ProductId等於product.EntityId – burzhuy