如何在 Magento 中检索废弃的购物车详细信息?
How to retrieve abandoned cart details in Magento?
我正在 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();
我正在 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();