2012-02-22 96 views
1

我不理解配置自定義銷售報價的代碼。在此代碼段:如何配置自定義sales_quote_totals

<sales> 
     <quote> 
      <totals> 
       <custom> 
        <class>custom/quote_address_total_custom</class> 
        <before>grand_total,....</before> 
        <after>subtotal,shipping,...</after> 
        <render>....</render> 
       </custom> 
      </totals> 
     </quote> 
    </sales> 

我想知道什麼是posibles值之前,之後和渲染標籤和consecuence檢查自定義參數。 在這個例子中,你可以看到

<before>grand_total,....</before> 

這是否意味着我的自定義報價渲染後的gran_total被計算???

回答

1

,你可以在beforeafter標籤使用的可能值是其他標籤構成報價,即:小計,grand_total,稅金,運費等...在清晰,引號的distincts總數。
以及關於你的問題:

<before>grand_total,....</before> 

這是否意味着我的自定義報價渲染後的gran_total被計算???

沒有,只是周圍的其他方法:有你說的以前grand_total總。

關於<render>標籤,我不認爲它在這個範圍內是有效的...或者它是,我不知道。不管怎樣,在這你把你想讓它使用塊類的定義,例如:

<render>adminhtml/catalog_product_edit_tab_options_type_text</render> 

意味着它使用the Mage_Core_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Text

+0

我在哪裏可以找到組成報價的標籤,在config.xml文件Mage_Sales模塊??謝謝osDave – davidselo 2012-02-22 17:17:51

+0

@davidselo是,那裏,在全球銷售報價總計標籤。 yw – OSdave 2012-02-22 17:33:33

+0

謝謝!! :)你繼續幫助我在stackoverflow! – davidselo 2012-02-22 17:48:51