Ignore:
Timestamp:
2010/11/29 20:59:11 (16 years ago)
Author:
nanasess
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
Message:

#823 商品種別によってカートを分ける

  • 商品種別に応じて配送方法を取得するよう変更
  • 商品規格に応じて支払方法を取得するよう変更
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php

    r19680 r19688  
    14841484 
    14851485    /** 
    1486      * お届け時間を取得する. 
    1487      * 
    1488      * @param integer $payment_id 支払い方法ID 
     1486     * 商品種別からお届け時間を取得する. 
     1487     * 
     1488     * @param integer $productTypeId 商品種別ID 
    14891489     * @return array お届け時間の配列 
    14901490     */ 
    1491     function sfGetDelivTime($payment_id = "") { 
     1491    function sfGetDelivTime($productTypeId) { 
    14921492        $objQuery =& SC_Query::getSingletonInstance(); 
    14931493 
    … …  
    14961496 
    14971497        if($payment_id != "") { 
    1498             $where = "del_flg = 0 AND payment_id = ?"; 
    1499             $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($payment_id)); 
     1498            $where = "del_flg = 0 AND product_type_id = ?"; 
     1499            $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($productTypeId)); 
    15001500            $deliv_id = $arrRet[0]['deliv_id']; 
    15011501        } 
    … …  
    15161516     * @return string 指定の都道府県, 支払い方法の配送料金 
    15171517     */ 
    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(); 
    15391520 
    15401521        // 配送業者から配送料を取得 
    … …  
    15421523 
    15431524            // 都道府県が指定されていない場合は、東京都の番号を指定しておく 
    1544             if($pref == "") { 
    1545                 $pref = 13; 
     1525            if($pref_id == "") { 
     1526                $pref_id = 13; 
    15461527            } 
    15471528 
    15481529            $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)); 
    15511532        } 
    15521533        return $arrRet[0]['fee']; 
Note: See TracChangeset for help on using the changeset viewer.