문제

Does somebody know why field customer_address_id is null on sales_flat_order_address table? As regards to order for customer who has an address.

In class: Mage_Sales_Model_Order_Address I found this:

protected function _beforeSave()

{
    parent::_beforeSave();

    if (!$this->getParentId() && $this->getOrder()) {
        $this->setParentId($this->getOrder()->getId());
    }

    // Init customer address id if customer address is assigned
    if ($this->getCustomerAddress()) {
        $this->setCustomerAddressId($this->getCustomerAddress()->getId());
    }

    return $this;
}

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top