2013-09-05 41 views
0

我使用的是magento 1.7.0.2。在sales_flat_order_item表中,我創建了一個字段「real_original_price」,其中存儲產品的原始價格(如果特價).Price正在存儲正確。現在的問題是我如何在我的發票頁面中顯示real_original_price字段的數據。實際上,我的目標是在發票中顯示用戶打折金額(原始價格 - 賣出價格)。我如何實現this.any想法magento從sales_flat_order_item表中獲取value以打印在發票頁

https://www.sonassi.com/knowledge-base/magento-kb/display-attributes-on-invoice-or-packing-slip-in-magento/

回答

0

您可以保存訂單或發票保存事件寫的觀察員。在觀察員中,您可以從catalog_product_entity中獲取原始價格並在sales_flat_order中進行更新。