所以我找到了一个关于动态期权定价的问题的答案,但这导致我被难住了。我可以理解大部分答案,但是当涉及到 XML 和模块实现时,我迷路了。
这是我正在尝试做的事情:
http://www.magentocommerce.com/boards/viewthread/260544/#t348802
需要覆盖Mage_Catalog_Model_Product_Type_Price模型和Mage_Catalog_Block_Product_View_Options块。
修改后的 Price.php 位于
/app/core/local/rtega/dynamicPrice/Model/Product/Type/Price.php
修改后的 Options.php 位于
/app/core/local/rtega/dynamicPrice/Block/Product/View/Options.php
有 rtega_dynamicPrice.xml 在
/应用程序/等/模块/
下面是当前的 config.xml 位于
/app/core/local/rtega/dynamicPrice/etc/
<?xml version="1.0"?>
<config>
<modules>
<rtega_dynamicPrice>
<version>1.0.0</version>
</rtega_dynamicPrice>
</modules>
<global>
<blocks>
<catalog>
<rewrite>
<product_view_options>rtega_dynamicPrice_Block_Product_View_Options</product_view_options>
</rewrite>
</catalog>
</blocks>
<catalog>
<product>
<type>
<configurable>
<price_model>rtega_dynamicPrice_Model_Product_Type_Price</price>
</configurable>
</type>
</product>
</catalog>
</global>
</config>
任何帮助是极大的赞赏!