简体   繁体   English

有人知道第一次调用magento中的运送方法的时间和地点吗

[英]does anybody know when and where the shipping method in magento is first called

Where in magentos php source code is the shipping method rates first called? 在magentos php源代码中,哪里首先调用了运输方式费率? In other words, when is the shipping methods info (flatrate,tablerate,freeshipping) first extracted from the database into php code? 换句话说,什么时候首先从数据库中将运输方法信息(统一费率,固定费率,免运费)提取到php代码中? I i want to remove the default shipping methods and render my own shipping method only for testing in the shopping cart. 我想删除默认的运输方式,并仅在购物车中进行测试时呈现我自己的运输方式。

All Magento's default Shipping Methods pull the rates using its Model from the Database. 所有Magento的默认运输方式都使用其模型从数据库中提取费率。

For example: If you want to check that from where Flatrate shipping method pull the rates than goto app/code/core/Mage/Shipping/Model/Carrier/Flatrate.php. 例如:如果要检查从Flatrate运送方法从哪个位置拉价,请转到go / app / code / core / Mage / Shipping / Model / Carrier / Flatrate.php。

This file causes to pull the rates for Flatrate Shipping Method from the Database. 此文件导致从数据库中提取统一费率运输方式的费率。

Thanks! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM