Changeset 18169
- Timestamp:
- 2009/07/07 13:06:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/helper/SC_Helper_DB.php
r18134 r18169 96 96 * @param bool $add カラムの作成も行う場合 true 97 97 * @return bool カラムが存在する場合とカラムの生成に成功した場合 true, 98 * 99 * 98 * テーブルが存在しない場合 false, 99 * 引数 $add == false でカラムが存在しない場合 false 100 100 */ 101 101 function sfColumnExists($table_name, $col_name, $col_type = "", $dsn = "", $add = false) { … … 142 142 * @param bool $add インデックスの生成もする場合 true 143 143 * @return bool インデックスが存在する場合とインデックスの生成に成功した場合 true, 144 * 145 * 144 * テーブルが存在しない場合 false, 145 * 引数 $add == false でインデックスが存在しない場合 false 146 146 */ 147 147 function sfIndexExists($table_name, $col_name, $index_name, $length = "", $dsn = "", $add = false) { … … 224 224 function sfGetRootId() { 225 225 226 if(!$this->g_root_on) 226 if(!$this->g_root_on) { 227 227 $this->g_root_on = true; 228 228 $objQuery = new SC_Query(); … … 300 300 $arrClassCatName = $this->sfGetIDValueList("dtb_classcategory", "classcategory_id", "name"); 301 301 302 $objPage->tpl_total_pretax = 0; 303 $objPage->tpl_total_tax = 0; 304 $objPage->tpl_total_point = 0; 302 $objPage->tpl_total_pretax = 0; // 費用合計(税込み) 303 $objPage->tpl_total_tax = 0; // 消費税合計 304 $objPage->tpl_total_point = 0; // ポイント合計 305 305 306 306 // カート内情報の取得 … … 1286 1286 1287 1287 // 自身のランクを取得する 1288 $rank = $objQuery->get($tableName, "rank", "$keyIdColumn = ? AND " . $where, array($keyId)); 1288 if($where != "") { 1289 $getWhere = "$keyIdColumn = ? AND " . $where; 1290 } else { 1291 $getWhere = "$keyIdColumn = ?"; 1292 } 1293 $rank = $objQuery->get($tableName, "rank", $getWhere, array($keyId)); 1289 1294 1290 1295 $max = $objQuery->max($tableName, "rank", $where); … … 1560 1565 1561 1566 // 合計の計算 1562 $arrData['total'] = $objPage->tpl_total_pretax; 1563 $arrData['total']+= $arrData['deliv_fee']; 1564 $arrData['total']+= $arrData['charge']; 1567 $arrData['total'] = $objPage->tpl_total_pretax; // 商品合計 1568 $arrData['total']+= $arrData['deliv_fee']; // 送料 1569 $arrData['total']+= $arrData['charge']; // 手数料 1565 1570 // お支払い合計 1566 1571 $arrData['payment_total'] = $arrData['total'] - ($arrData['use_point'] * POINT_VALUE);
Note: See TracChangeset
for help on using the changeset viewer.