Magento:如何获得订单送货地址第2行

时间:2017-03-14 11:11:48

标签: magento magento-1.9

我需要获得第二行Magento订单送货地址,目前我收到的信息是这样的:

        $this->formatText($order->getBillingAddress()->getData('prefix')),
        $this->formatText($order->getBillingAddress()->getData('firstname')),
        $this->formatText($order->getBillingAddress()->getData('middlename')),
        $this->formatText($order->getBillingAddress()->getData('lastname')),
        $this->formatText($order->getBillingAddress()->getData('suffix')),
        $this->formatText($order->getBillingAddress()->getData('street')),
        $this->formatText($order->getBillingAddress()->getData('city')),
        $this->formatText($order->getBillingAddress()->getData('region')),
        $this->formatText($order->getBillingAddress()->getData('country_id')),

一切都很好,但是当客户提供地址第2行时,请参见下图:

enter image description here

我的代码没有捕获该行,任何人都知道如何在Magento中获取地址第2行?

1 个答案:

答案 0 :(得分:1)

Magento Stack Exchange回答了这个问题,如果有人有兴趣,可以回答这个问题:

https://magento.stackexchange.com/questions/164240/magento-how-to-get-order-shipping-address-line-2

相关问题