Magento获得指定客户的所有订单

Php代码
$customerId=客户Id; $limit=10; $orders=Mage::getResourceModel('sales/order_collection'); $orders->addAttributeToFilter('customer_id', $customerId)->getSelect()->order('e.entity_id desc')->limit($limit);

点赞
  1. AllInAce说道:
    Google Chrome Windows 10
    https://t.me/iGaming_live/4872

发表回复

电子邮件地址不会被公开。必填项已用 * 标注