0

What is the proper code to export qty attribute from Magento 2.3 to CSV.

$product->getQty(); - doesn't work.

Thank you!

2 Answers 2

0

Admin Dashboard

Go: System > Export > Select Entity Type > Export File Format

1
  • programmatically preferably. Jan 15, 2020 at 9:34
0

Try This

 $_productStock = $this->_stockItemRepository->get('product id'); 
 $_productStockQty =  $_productStock->getQty(); 

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.