title: How to update product.quantity in PrestaShop with PrestaSharp?
body: <p>I'm using prestaSharp for C#. I need to update the product quantity but <code>product.quantity</code> property is  <code>readonly</code>.</p>
  
  <pre><code>var ProductFactory = new Bukimedia.PrestaSharp.Factories.ProductFactory(BaseUrl, Account, Password);
  List&lt;Bukimedia.PrestaSharp.Entities.product&gt; products = ProductFactory.GetAll();
  foreach (var item in myItems)
  {
      var productToUpdate = products.First(x =&gt; x.reference == item.Ref);
      // update the quantities
      if (productToUpdate != null)
      {
          productToUpdate.quantity = item.Quantity;
      }
  }
  await ProductFactory.UpdateListAsync(products);
  </code></pre>
  
  <p>How should i proceed? Thanks in advance</p>