Ryan.Mitchell Posted December 5, 2019 Share Posted December 5, 2019 Hello, We're using this current code to add quantities to a product when it is created. It creates the product in the backend OK but does not appear. If you manually type the id of the product in the URL and update the quantity manually - it then shows. var stockAvailableFactory = new StockAvailableFactory(baseUrl, accountKey, string.Empty); stockAvailableFactory.Update( new Bukimedia.PrestaSharp.Entities.stock_available { id = product.associations.stock_availables[0] .id, id_product = product.id, id_product_attribute = 0, id_shop = shopId, id_shop_group = 0, quantity = 1, depends_on_stock = 0, out_of_stock = 1, }); Link to comment Share on other sites More sharing options...
140bpm Posted December 27, 2019 Share Posted December 27, 2019 (edited) I have the same problem. Did you find a solution? Edited December 27, 2019 by 140bpm (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now