duanlangwen9597 2011-04-29 17:02
浏览 29
已采纳

在下订单后获取结帐登记的客户信息

User comes to checkout and selects register as new customer, when placing the order, I am trying to get the info that he/she entered like:

//This is in Paypal Standard Model
$quote = $this->getQuote();
$isQuoteVirtual = $quote->getIsVirtual();
$address = $isQuoteVirtual ? $quote->getBillingAddress() : $quote->getShippingAddress();

//City:
$address->getCity();

//Country Code:
$address->getCountryId();

This works when the customer is logged in, but when he/she selects register this info is not available cause it is not saved in the sales_flat_quote_address table, is there a way for me to get customer info at this point? Any hook I can use or store it in the session or there is more elegant way of dealing with this. Thank you in advance.

  • 写回答

1条回答 默认 最新

  • drrrdo0802 2011-04-30 15:32
    关注

    I was trying to fix Paypal issue in Magento 1.4.0.1 version with this, but actually I found this link: http://www.magentocommerce.com/bug-tracking/issue?issue=8467 and the Magento Team is offering a patch for this if anyone find it useful: http://www.magentocommerce.com/wiki/_media/patches/bug20832.patch

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题