0

一位特定用户从前端登录到他的帐户并将一些商品添加到购物车中。然后他退出了。当他再次登录时,我想获取他的报价地址对象。

如何做到这一点?是否有任何事件触发并且我可以获得报价地址对象?

4

1 回答 1

0

您可以使用:

$quote= Mage::getSingleton('checkout/session')->getQuote();//this will try to load the quote by current logged in customer if customer previously left any
$quote->getBillingAddress();//should return billng address object, if current quote has any billling address set
$quote->getShippingAddress();//should return shipping address object, if current quote has any shipping address set

希望这有帮助!

于 2013-11-10T18:41:41.557 回答