What is the proper code to export qty attribute from Magento 2.3 to CSV.
$product->getQty();
- doesn't work.
Thank you!
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityWhat is the proper code to export qty attribute from Magento 2.3 to CSV.
$product->getQty();
- doesn't work.
Thank you!
Admin Dashboard
Go: System > Export > Select Entity Type > Export File Format
Try This
$_productStock = $this->_stockItemRepository->get('product id');
$_productStockQty = $_productStock->getQty();