Magento2 在Magento 2中-如何检索废弃的购物车详细信息?

Magento2 在Magento 2中-如何检索废弃的购物车详细信息?,magento2,magento-2.0,magento2.0.2,Magento2,Magento 2.0,Magento2.0.2,我正在Magento版本2中创建一个新的扩展。现在我需要得到废弃的手推车报告的详细信息。我搜索了很多网站,但仍然没有找到如何检索这些数据的解决方案 因此,请帮助我获取废弃的购物车报告数据 谢谢我终于找到了获取废弃购物车详细信息的方法。这是代码 $om = \Magento\Framework\App\ObjectManager::getInstance(); $collection = $om->get('Magento\Reports\Model\ResourceModel\Quote

我正在Magento版本2中创建一个新的扩展。现在我需要得到废弃的手推车报告的详细信息。我搜索了很多网站,但仍然没有找到如何检索这些数据的解决方案

因此,请帮助我获取废弃的购物车报告数据


谢谢

我终于找到了获取废弃购物车详细信息的方法。这是代码

$om = \Magento\Framework\App\ObjectManager::getInstance();

$collection = $om->get('Magento\Reports\Model\ResourceModel\Quote\Collection');
$store_id = $this->storeManager->getStore()->getId();
$collection->prepareForAbandonedReport([$store_id]);
$rows = $collection->load();

我已尝试此代码,但无法获取废弃购物车报告。请在这方面指导我