Magento 如何找到从哪个商店购买的客户?

Magento 如何找到从哪个商店购买的客户?,magento,store,Magento,Store,我在一个名为AAAAA和bbbbbb的magento下有2家店铺。商店ID为1和2 Mage::app()->getStore()->getStoreId(); 我知道这行代码是用来获取当前商店id的 $orderCollection = Mage::getModel('sales/order')->getCollection(); 用于获取所有订单详细信息。从$orderCollection中,如何获取仅从门店购买的客户详细信息\u id=2 提前感谢您可

我在一个名为AAAAA和bbbbbb的magento下有2家店铺。商店ID为1和2

     Mage::app()->getStore()->getStoreId();
我知道这行代码是用来获取当前商店id的

   $orderCollection = Mage::getModel('sales/order')->getCollection();
用于获取所有订单详细信息。从$orderCollection中,如何获取仅从门店购买的客户详细信息\u id=2


提前感谢

您可以使用:
$orderCollection->addFieldToFilter('store_id',2)

您好,请帮助我。可以为不同的商店生成不同的订单id。请帮助我。可以为不同的商店生成不同的订单id