一位特定用户从前端登录到他的帐户,并将一些商品添加到购物车。然后他退出了。再次登录时我想得到他的报价地址对象。
如何实现这一目标?是否有任何事件可以触发,我可以获得引用地址对象?
答案 0 :(得分: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
希望这有帮助!