如何在 ordercontroller Magento 后端获取 sales_quote 模型?我需要在 ordercontroller 中获取报价详细信息,因此我使用以下代码。
$quote= Mage::getModel('sales/quote')->load($quoteid);
上面的查询返回空数据。这是下面
Mage_Sales_Model_Quote Object
(
[_eventPrefix:protected] => sales_quote
[_eventObject:protected] => quote
[_customer:protected] =>
[_addresses:protected] =>
[_items:protected] =>
[_payments:protected] =>
[_errorInfoGroups:protected] => Array
(
)
[_preventSaving:protected] =>
[_resourceName:protected] => sales/quote
[_resource:protected] =>
[_resourceCollectionName:protected] => sales/quote_collection
[_cacheTag:protected] =>
[_dataSaveAllowed:protected] => 1
[_isObjectNew:protected] =>
[_data:protected] => Array
(
)
[_hasDataChanges:protected] =>
[_origData:protected] =>
[_idFieldName:protected] =>
[_isDeleted:protected] =>
[_oldFieldsMap:protected] => Array
(
)
[_syncFieldsMap:protected] => Array
(
)
)
有什么办法可以得到报价吗?