地域 | 2kg以内 | 5kg以内 | 5kgを超える |
---|---|---|---|
東京都内 | ¥500 | ¥600 | ¥700 |
北海道・沖縄県 | ¥1,000 | ¥1,200 | ¥1,400 |
上記以外 | ¥700 | ¥800 | ¥900 |
data/class_extends/helper_extends/SC_Helper_DB_Ex.php
class SC_Helper_DB_Ex extends SC_Helper_DB { function lfCalcAllProductsDelivFee(&$arrData, &$objCartSess) { // 商品送料に入力された金額を重量(g)とみなして取得 $weight = parent::lfCalcAllProductsDelivFee($arrData, $objCartSess); // 都道府県と重量に応じた送料を返す switch ($arrData['deliv_pref']) { case 13: // 東京都 if ($weight <= 2000) return 500; if ($weight <= 5000) return 600; return 700; case 1: // 北海道 case 47: // 沖縄県 if ($weight <= 2000) return 1000; if ($weight <= 5000) return 1200; return 1400; default: // 他 if ($weight <= 2000) return 700; if ($weight <= 5000) return 800; return 900; } } }