Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Magento 以外で注文を作成しようとしています。現在の問題は、Magento で注文を作成する前に、配送料を知る必要があることです。
助言がありますか?
2 つのオプションがあります。
テーブル レートはshipping_tablerateテーブルに格納されます。したがって、計算タイプ (Magento テーブル料金には 3 つの計算バリアントがあります) と注文条件 (重量、価格、配送先、アイテム数) をデータベースに直接問い合わせます。
shipping_tablerate
見積もりオブジェクトを作成し、見積もりアイテムと住所を追加してから、Mage_Shipping_Model_Shipping::collectRatesByAddress.
Mage_Shipping_Model_Shipping::collectRatesByAddress