2

Where in magentos php source code is the shipping method rates first called? In other words, when is the shipping methods info (flatrate,tablerate,freeshipping) first extracted from the database into php code? I i want to remove the default shipping methods and render my own shipping method only for testing in the shopping cart.

4

1 回答 1

1

Magento 的所有默认运输方法都使用其模型从数据库中提取费率。

例如:如果您想检查 Flatrate 运输方式从哪里提取费率,而不是转到 app/code/core/Mage/Shipping/Model/Carrier/Flatrate.php。

此文件导致从数据库中提取统一运费方法的费率。

谢谢!

于 2012-06-27T13:31:38.620 回答