タグ付けされた質問 「magento-1.7.0.1」

3
カスタマーID別に最近表示した製品を取得するにはどうすればよいですか?
SOAP WSを介して、最後に表示された顧客のアイテムを公開したい。 どうすればそれらのアイテムに到達できますか?私はそれらが 'reports / product_index_viewed'に保存されていることを知っています。しかし、私はそれらに到達するための正しい方法がわからない。 これが私がこれまでに得たものです: public function getRecentlyViewedByCustomer($customerId) { Mage::log(__METHOD__); $customer = $this->_getCustomer($customerId); Mage::log('Getting recently viewed products of '. $customer->getName() .' ('. $customer->getEmail() .'), ID: ' . $customer->getId() ); $productCollection = Mage::getResourceModel('reports/product_index_viewed'); Mage::log(print_r($productCollection, true)); return __METHOD__; } public function _getCustomer($customerId) { $customer = Mage::getModel('customer/customer')->load($customerId); return $customer; }
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.