Ignore:
Timestamp:
2010/11/30 19:38:05 (12 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20101130052421-f23n6phk9nuifexo
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/Smarty/templates/admin/products/confirm.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fproducts%2Fconfirm.tpl
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/Smarty/templates/admin/products/product_class.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fproducts%2Fproduct_class.tpl
data/Smarty/templates/admin/products/product_class_confirm.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fadmin%2Fproducts%2Fproduct_class_confirm.tpl
data/class/SC_Product.php 18277@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Fdata%2Fclass%2FSC_Product.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/admin/products/LC_Page_Admin_Products_ProductClass.php 15559@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fproducts%2FLC_Page_Admin_Products_ProductClass.php
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20101130103758-gugs3ykh556e1vkz
bzr:revno:
2425
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-11-30 19:37:58.640000105 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2010-11-30T10:37:58.640000Z
Message:

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

  • 商品登録時に支払方法を設定するよう修正
File:
1 edited

Legend:

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

    r19689 r19695  
    591591                                        MDB2_FETCHMODE_ORDERED); 
    592592        return $paymentIds; 
     593    } 
     594 
     595    /** 
     596     * 商品規格に支払方法を設定する. 
     597     * 
     598     * TODO 現在は DELETE/INSERT だが, UPDATE を検討する. 
     599     * 
     600     * @param integer $productClassId 商品規格ID 
     601     * @param array 設定する支払方法IDの配列 
     602     * @return void 
     603     */ 
     604    function setPaymentOptions($productClassId, $paymentIds) { 
     605        $val['product_class_id'] = $productClassId; 
     606 
     607        $objQuery =& SC_Query::getSingletonInstance(); 
     608        $objQuery->delete('dtb_payment_options', 'product_class_id = ?', array($productClassId)); 
     609        $rank = 1; 
     610        foreach ($paymentIds as $paymentId) { 
     611            $val['payment_id'] = $paymentId; 
     612            $val['rank'] = $rank; 
     613            $objQuery->insert('dtb_payment_options', $val); 
     614            $rank++; 
     615        } 
    593616    } 
    594617 
Note: See TracChangeset for help on using the changeset viewer.