Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
155 stars 151 forks source link

How to update size and color inventory? #391

Open albertg5 opened 4 years ago

albertg5 commented 4 years ago

I'm not able to update size and color inventory of one product.

I know that first I have to get id_product_attribute that includes color and size, once I get it I'll be able to update inventory using StockAvailable, but the problem is how to get id_product_attribute of an specific size and color?.

I would like to search by name or id of each attribute, and get id_product_attribute (combination) in order to send to StockAvailable and update stock.

Thank you in advance.