- Timestamp:
- 2010/11/29 20:59:11 (16 years ago)
- bzr:base-revision:
- svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:19687
- bzr:committer:
- Kentaro Ohkouchi <[email protected]>
- bzr:file-ids:
data/Smarty/templates/admin/products/product.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fproducts%2Fproduct.tpl
data/class/SC_CartSession.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_CartSession.php
data/class/SC_Product.php 18277@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Fdata%2Fclass%2FSC_Product.php
data/class/helper/SC_Helper_DB.php 15176@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fhelper%2FSC_Helper_DB.php
data/class/pages/admin/products/LC_Page_Admin_Products_Product.php 15342@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fproducts%2FLC_Page_Admin_Products_Product.php
data/class/pages/shopping/LC_Page_Shopping_Payment.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Payment.php- bzr:mapping-version:
- v4
- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- [email protected]
- bzr:revno:
- 2418
- bzr:revprop:branch-nick:
- branches/version-2_5-dev
- bzr:root:
- branches/version-2_5-dev
- bzr:timestamp:
- 2010-11-29 20:59:04.048000097 +0900
- bzr:user-agent:
- bzr2.2.1+bzr-svn1.0.4
- svn:original-date:
- 2010-11-29T11:59:04.048000Z
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php
r19680 r19688 1484 1484 1485 1485 /** 1486 * お届け時間を取得する.1487 * 1488 * @param integer $p ayment_id 支払い方法ID1486 * 商品種別からお届け時間を取得する. 1487 * 1488 * @param integer $productTypeId 商品種別ID 1489 1489 * @return array お届け時間の配列 1490 1490 */ 1491 function sfGetDelivTime($p ayment_id = "") {1491 function sfGetDelivTime($productTypeId) { 1492 1492 $objQuery =& SC_Query::getSingletonInstance(); 1493 1493 … … 1496 1496 1497 1497 if($payment_id != "") { 1498 $where = "del_flg = 0 AND p ayment_id = ?";1499 $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($p ayment_id));1498 $where = "del_flg = 0 AND product_type_id = ?"; 1499 $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($productTypeId)); 1500 1500 $deliv_id = $arrRet[0]['deliv_id']; 1501 1501 } … … 1516 1516 * @return string 指定の都道府県, 支払い方法の配送料金 1517 1517 */ 1518 function sfGetDelivFee($arrData) { 1519 $pref = $arrData['deliv_pref']; 1520 $payment_id = isset($arrData['payment_id']) ? $arrData['payment_id'] : ""; 1521 1522 $objQuery =& SC_Query::getSingletonInstance(); 1523 1524 $deliv_id = ""; 1525 1526 // 支払い方法が指定されている場合は、対応した配送業者を取得する 1527 if($payment_id != "") { 1528 $where = "del_flg = 0 AND payment_id = ?"; 1529 $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($payment_id)); 1530 $deliv_id = $arrRet[0]['deliv_id']; 1531 // 支払い方法が指定されていない場合は、先頭の配送業者を取得する 1532 } else { 1533 $where = "del_flg = 0"; 1534 $objQuery->setOrder("rank DESC"); 1535 $objQuery->setLimitOffset(1); 1536 $arrRet = $objQuery->select("deliv_id", "dtb_deliv", $where); 1537 $deliv_id = $arrRet[0]['deliv_id']; 1538 } 1518 function sfGetDelivFee($pref_id, $product_type_id) { 1519 $objQuery =& SC_Query::getSingletonInstance(); 1539 1520 1540 1521 // 配送業者から配送料を取得 … … 1542 1523 1543 1524 // 都道府県が指定されていない場合は、東京都の番号を指定しておく 1544 if($pref == "") {1545 $pref = 13;1525 if($pref_id == "") { 1526 $pref_id = 13; 1546 1527 } 1547 1528 1548 1529 $objQuery =& SC_Query::getSingletonInstance(); 1549 $where = " deliv_id = ? AND pref = ?";1550 $arrRet= $objQuery->select("fee", "dtb_delivfee", $where, array($ deliv_id, $pref));1530 $where = "product_type_id = ? AND pref = ?"; 1531 $arrRet= $objQuery->select("fee", "dtb_delivfee", $where, array($product_type_id, $pref_id)); 1551 1532 } 1552 1533 return $arrRet[0]['fee'];
Note: See TracChangeset
for help on using the changeset viewer.
