Hello,
I'm doing QuickBooks integration. How do I update an available product qty. For example I receive from QB that we have 50 products I want to use something like $product->setQty(50)
Please, help.
Thanks!
What you need here is probably the onHand value of the ProductVariant, that is tracked in the inventory.
Read more on inventory in Sylius here.
So the only thing I need to do is $productVariant->setOnHand(50)?
@alexdrupal Yes! And flush the manager of course.
Please reopen if still an issue. @TheMadeleine Maybe we should add this to http://docs.sylius.org/en/latest/book/products/inventory.html? Just example of setting the onHand.