Ignore:
Timestamp:
2010/11/04 12:57:08 (16 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:18880
bzr:committer:
Kentaro Ohkouchi <[email protected]>
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
data/mtb_constants_init.php 16505@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fmtb_constants_init.php
html/install/sql/create_table_mysql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_mysql.sql
html/install/sql/create_table_pgsql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_pgsql.sql
html/install/sql/drop_table.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fdrop_table.sql
html/install/sql/insert_data.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Finsert_data.sql
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
[email protected]
bzr:revno:
2361
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-11-04 12:57:05.384000063 +0900
bzr:user-agent:
bzr2.2.0+bzr-svn1.0.3
svn:original-date:
2010-11-04T03:57:05.384000Z
Message:

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

  • 「実商品・ダウンロード」を「商品種別」に変更
Location:
branches/version-2_5-dev/data
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/admin/products/confirm.tpl

    r18873 r18882  
    6868    <!--{if $tpl_nonclass == true}--> 
    6969    <tr> 
    70       <th>実商品・ダウンロード</th> 
    71       <td> 
    72       <!--{$arrDown[$arrForm.down]}--> 
     70      <th>商品種別</th> 
     71      <td> 
     72      <!--{$arrProductType[$arrForm.product_type_id]}--> 
    7373      </td> 
    7474    </tr> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/products/product.tpl

    r18876 r18882  
    126126    <!--{if $tpl_nonclass == true}--> 
    127127    <tr> 
    128       <th>実商品・ダウンロード<span class="attention"> *</span></th> 
    129       <td> 
    130         <input type="radio" name="down" value="1" <!--{if $arrForm.down == "1"}-->checked<!--{/if}-->/>実商品  
    131         <input type="radio" name="down" value="2" <!--{if $arrForm.down == "2"}-->checked<!--{/if}--> />ダウンロード 
     128      <th>商品種別<span class="attention"> *</span></th> 
     129      <td> 
     130        <input type="radio" name="product_type_id" value="<!--{$smarty.const.PRODUCT_TYPE_NORMAL}-->" <!--{if $arrForm.product_type_id == $smarty.const.PRODUCT_TYPE_NORMAL}-->checked<!--{/if}-->/>通常商品  
     131        <input type="radio" name="product_type_id" value="<!--{$smarty.const.PRODUCT_TYPE_DOWNLOAD}-->" <!--{if $arrForm.product_type_id == $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->checked<!--{/if}--> />ダウンロード商品 
    132132      </td> 
    133133    </tr> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/products/product_class.tpl

    r18873 r18882  
    101101      <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th> 
    102102      <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="attention">*</span></th> 
    103       <th>実商品・ダウンロード<span class="attention"> *</span></th> 
     103      <th>商品種別<span class="attention"> *</span></th> 
    104104      <th>ダウンロードファイル名<BR><span class="red"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span></th> 
    105105      <th>ダウンロード商品用ファイルアップロード<BR>登録可能拡張子:<!--{$smarty.const.DOWNLOAD_EXTENSION}--> (パラメータ DOWNLOAD_EXTENSION)</th> 
     
    139139      <td align="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td> 
    140140      <td> 
    141         <!--{assign var=key value="down:`$smarty.section.cnt.iteration`"}--> 
    142         <input type="radio" name="<!--{$key}-->" value="1" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}-->/>実商品  
    143         <input type="radio" name="<!--{$key}-->" value="2" <!--{if $arrForm[$key] == "2"}-->checked<!--{/if}--> />ダウンロード 
     141        <!--{assign var=key value="product_type_id:`$smarty.section.cnt.iteration`"}--> 
     142        <input type="radio" name="<!--{$key}-->" value="<!--{$smarty.const.PRODUCT_TYPE_NORMAL}-->" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}-->/>通常商品  
     143        <input type="radio" name="<!--{$key}-->" value="<!--{$smarty.const.PRODUCT_TYPE_NORMAL}-->" <!--{if $arrForm[$key] == "2"}-->checked<!--{/if}--> />ダウンロード商品 
    144144      </td> 
    145145      <td> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/products/product_class_confirm.tpl

    r18873 r18882  
    4343      <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th> 
    4444      <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)</th> 
    45       <th>実商品・ダウンロード</th> 
     45      <th>商品種別</th> 
    4646      <th>ダウンロードファイル名</th> 
    4747      <th>ダウンロード商品用ファイルアップロード</th> 
     
    7070      <!--{assign var=key value="price02:`$smarty.section.cnt.iteration`"}--> 
    7171      <td class="right"><!--{$arrForm[$key]}--></td> 
    72       <!--{assign var=key value="down:`$smarty.section.cnt.iteration`"}--> 
     72      <!--{assign var=key value="product_type_id:`$smarty.section.cnt.iteration`"}--> 
    7373      <!--{assign var=inkey value="`$arrForm[$key]`"}--> 
    7474      <td class="right"><!--{$arrDown[$inkey]}--></td> 
  • branches/version-2_5-dev/data/class/SC_Product.php

    r18876 r18882  
    180180            $classCategories['']['']['name'] = '選択してください'; 
    181181            $classCategories['']['']['product_class_id'] = $arrProductClass[0]['product_class_id']; 
    182             // 商品種別 TODO 暫定的に down を使用する 
    183             $classCategories['']['']['product_type'] = $arrProductClass[0]['down']; 
     182            // 商品種別 
     183            $classCategories['']['']['product_type'] = $arrProductClass[0]['product_type_id']; 
    184184            $this->product_class_id[$productId] = $arrProductClass[0]['product_class_id']; 
    185             // 商品種別 TODO 暫定的に down を使用する 
    186             $this->product_type[$productId] = $arrProductClass[0]['down']; 
     185            // 商品種別 
     186            $this->product_type[$productId] = $arrProductClass[0]['product_type_id']; 
    187187            foreach ($arrProductClass as $productsClass) { 
    188188                $productsClass1 = $productsClass['classcategory_id1']; 
     
    225225                // 商品規格ID 
    226226                $classCategories[$productsClass1][$productsClass2]['product_class_id'] = $productsClass['product_class_id']; 
    227                 // 商品種別 TODO 暫定的に down を使用する 
    228                 $classCategories[$productsClass1][$productsClass2]['product_type'] = $productsClass['down']; 
     227                // 商品種別 
     228                $classCategories[$productsClass1][$productsClass2]['product_type'] = $productsClass['product_type_id']; 
    229229            } 
    230230 
     
    255255            T1.product_class_id, 
    256256            T1.del_flg, 
    257             T1.down, 
     257            T1.product_type_id, 
    258258            T1.down_filename, 
    259259            T1.down_realfilename, 
  • branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php

    r18876 r18882  
    7272        $this->arrDELIVERYDATE = $masterData->getMasterData("mtb_delivery_date"); 
    7373        $this->arrAllowedTag = $masterData->getMasterData("mtb_allowed_tag"); 
     74        $this->arrProductType = $masterData->getMasterData("mtb_product_type"); 
    7475        $this->arrMaker = SC_Helper_DB_Ex::sfGetIDValueList("dtb_maker", "maker_id", "name"); 
    75         $this->arrDown = $masterData->getMasterData("mtb_down"); 
    7676        $this->tpl_nonclass = true; 
    7777    } 
     
    366366                              sale_limit, 
    367367                              point_rate, 
    368                               down, 
     368                              product_type_id, 
    369369                              down_filename, 
    370370                              down_realfilename 
     
    403403            $this->arrForm['status'] = DEFAULT_PRODUCT_DISP; 
    404404        } 
    405         if($this->arrForm['down'] == "") { 
    406             $this->arrForm['down'] = DEFAULT_PRODUCT_DOWN; 
     405        if($this->arrForm['product_type_id'] == "") { 
     406            $this->arrForm['product_type_id'] = DEFAULT_PRODUCT_DOWN; 
    407407        } 
    408408 
     
    631631 
    632632            //ダウンロード商品チェック 
    633             if($array['down'] == "2") { 
     633            if($array['product_type_id'] == PRODUCT_TYPE_DOWNLOAD) { 
    634634                $objErr->doFunc(array("ダウンロードファイル名", "down_filename", STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    635635                if($array['down_realfilename'] == "") { 
     
    638638            } 
    639639            //実商品チェック 
    640             if($array['down'] == "1") { 
     640            if($array['product_type_id'] == PRODUCT_TYPE_NORMAL) { 
    641641                if($array['down_filename'] != "") { 
    642                     $objErr->arrErr['down_filename'] = "※ 商品の場合はダウンロードファイル名を設定できません。<br />"; 
     642                    $objErr->arrErr['down_filename'] = "※ 通常商品の場合はダウンロードファイル名を設定できません。<br />"; 
    643643                } 
    644644                if($array['down_realfilename'] != "") { 
    645                     $objErr->arrErr['down_realfilename'] = "※ 商品の場合はダウンロード商品用ファイルをアップロードできません。<br />ファイルを取り消してください。<br />"; 
     645                    $objErr->arrErr['down_realfilename'] = "※ 通常商品の場合はダウンロード商品用ファイルをアップロードできません。<br />ファイルを取り消してください。<br />"; 
    646646                } 
    647647            } 
     
    855855 
    856856        // 配列の添字を定義 
    857         $checkArray = array('product_class_id', 'product_id', 'product_code', 'stock', 'stock_unlimited', 'price01', 'price02', 'sale_limit', 'deliv_fee', 'point_rate' ,'down', 'down_filename', 'down_realfilename'); 
     857        $checkArray = array('product_class_id', 'product_id', 'product_code', 'stock', 'stock_unlimited', 'price01', 'price02', 'sale_limit', 'deliv_fee', 'point_rate' ,'product_type_id', 'down_filename', 'down_realfilename'); 
    858858        $sqlval = SC_Utils_Ex::sfArrayIntersectKeys($arrList, $checkArray); 
    859859        $sqlval = SC_Utils_Ex::arrayDefineIndexes($sqlval, $checkArray); 
  • branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php

    r18828 r18882  
    5454        $this->tpl_subno = 'product'; 
    5555        $this->tpl_subtitle = '商品登録(商品規格)'; 
    56         $masterData = new SC_DB_MasterData_Ex(); 
    57         $this->arrDown = $masterData->getMasterData("mtb_down"); 
    5856    } 
    5957 
     
    217215            $pVal['price01'] = $arrList['price01:'.$i]; 
    218216            $pVal['price02'] = $arrList['price02:'.$i]; 
    219             $pVal['down'] = $arrList['down:'.$i]; 
     217            $pVal['product_type_id'] = $arrList['product_type_id:'.$i]; 
    220218            $pVal['down_filename'] = $arrList['down_filename:'.$i]; 
    221219            $pVal['down_realfilename'] = $arrList['down_realfilename:'.$i]; 
     
    346344 
    347345                //ダウンロード商品チェック 
    348                 if($array["down:".$no] == "2") { 
     346                if($array["product_type_id:".$no] == PRODUCT_TYPE_DOWNLOAD) { 
    349347                    $objErr->doFunc(array("ダウンロードファイル名", "down_filename:".$no, STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    350348                    if($array["down_realfilename:".$no] == "") { 
     
    353351                } 
    354352                //実商品チェック 
    355                 else if($array["down:".$no] == "1") { 
     353                else if($array["product_type_id:".$no] == PRODUCT_TYPE_DOWNLOAD) { 
    356354                    if($array["down_filename:".$no] != "") { 
    357355                        $objErr->arrErr["down_filename:".$no] = "※ 実商品の場合はダウンロードファイル名を設定できません。<br />"; 
  • branches/version-2_5-dev/data/mtb_constants_init.php

    r18873 r18882  
    627627/** ダウンロード販売機能用オンライン決済payment_id(カンマ区切り) */ 
    628628define('ONLINE_PAYMENT', "1"); 
     629/** 通常商品 */ 
     630define('PRODUCT_TYPE_NORMAL', 1); 
     631/** ダウンロード商品 */ 
     632define('PRODUCT_TYPE_DOWNLOAD', 2); 
    629633?> 
Note: See TracChangeset for help on using the changeset viewer.