您好我尝试向Order Total添加自定义折扣,我找到了一个教程
http://magento.ikantam.com/qa/how-add-discount-total-magento
但我不明白
<global>
<sales>
<quote>
<totals>
<discount>
<class>Ikantam_BasicLoyalty_Model_ Discount</class>
<after>subtotal</after>
</ discount >
</totals>
</quote>
<order_invoice>
<totals>
<discount >
<class>Ikantam_BasicLoyalty_Model_ Invoice </class>
<after>subtotal</after>
</discount >
</totals>
</order_invoice>
<order_creditmemo>
<totals>
<discount >
<class>Ikantam_BasicLoyalty_Model_Creditmemo</class>
<after>subtotal</after>
</discount >
</totals>
</order_creditmemo>
</sales>
这是什么意思?
答案 0 :(得分:0)
在此示例中,他们正在创建一个名为namespace = Ikantum和modulename = BasicLoyalty的模块。所以config.xml将保存在/ app / code / local / Ikantum / BasicLoyalty / etc
出于某种原因,我会删除一些折扣标签中的额外空格。