很簡單。
覆蓋各個銷售訂單的歷史塊的應用程序\代碼\核心\法師\銷售\塊\訂單\ History.php文件到你當地的號碼池
,只是由當前存儲ID篩選您的收藏。
$store_id = Mage::app()->getStore()->getId();
$orders = Mage::getResourceModel('sales/order_collection')
->addFieldToSelect('*')
->addFieldToFilter('customer_id', Mage::getSingleton('customer/session')->getCustomer()->getId())
->addFieldToFilter('state', array('in' => Mage::getSingleton('sales/order_config')->getVisibleOnFrontStates()))
->addFieldToFilter('store_id',$store_id)
->setOrder('created_at', 'desc')
;
注意這些行以上代碼
/*Current Store View ID*/
$store_id = Mage::app()->getStore()->getId();
/*Filtering the order collection by current store id*/
->addFieldToFilter('store_id',$store_id)
謝謝,這是什麼需要我。 :) – 2013-03-06 07:41:28