Can you please help me on setting stock programmatically for already existing product. I have a Magento 2.3.5-p1 instance, so StockRegistryInterface, StockItemInterface, setStockData method of productRepository and some other methods which were used for product stock management, are deprecated now. So if you have a solution or any suggestions, please help me. Thanks!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.