【发布时间】:2014-12-04 07:18:55
【问题描述】:
我正在尝试在Onepage.php 的saveBilling() 方法中为客户设置自定义属性
Onepage.php 的路径是
/app/code/core/Mage/Checkout/Model/Type/Onepage.php
在saveBilling()我写了下面的代码
$this->getQuote()->setData("customer_dri_license","22");
如您所见,我正在尝试设置值 22 for customer_dri_license
我想在saveOrder() 中检索这个值,因为我已经写在下面的代码行
$this->getQuote()->getData("customer_dri_license")
但我没有收到saveBilling() 中设置的值“22”
如果我遗漏了什么,请告诉我。
【问题讨论】:
标签: php attributes magento-1.8