- Timestamp:
- 2010/11/24 05:30:01 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php
r19677 r19680 252 252 function sfTotalCart(&$objPage, $objCartSess, $dummy1 = null, $key = "") { 253 253 254 $objPage->tpl_total_ pretax[$key] = 0; // 費用合計(税込み)254 $objPage->tpl_total_inctax[$key] = 0; // 費用合計(税込み) 255 255 $objPage->tpl_total_tax[$key] = 0; // 消費税合計 256 256 $objPage->tpl_total_point[$key] = 0; // ポイント合計 … … 320 320 } 321 321 // 商品ごとの合計金額 322 $objPage->arrProductsClass[$cnt]['total_ pretax'][$key] = $objCartSess->getProductTotal($arrCart['id']);322 $objPage->arrProductsClass[$cnt]['total_inctax'][$key] = $objCartSess->getProductTotal($arrCart['id']); 323 323 // 送料の合計を計算する 324 324 $objPage->tpl_total_deliv_fee[$key] += ($arrData['deliv_fee'] * $arrCart['quantity']); … … 345 345 346 346 // 全商品合計金額(税込み) 347 $objPage->tpl_total_ pretax[$key] = $objCartSess->getAllProductsTotal();347 $objPage->tpl_total_inctax[$key] = $objCartSess->getAllProductsTotal(); 348 348 // 全商品合計消費税 349 349 $objPage->tpl_total_tax[$key] = $objCartSess->getAllProductsTax(); … … 1578 1578 $arrData['tax'] = $objPage->tpl_total_tax[$key]; 1579 1579 // 小計の取得 1580 $arrData['subtotal'] = $objPage->tpl_total_ pretax[$key];1580 $arrData['subtotal'] = $objPage->tpl_total_inctax[$key]; 1581 1581 1582 1582 // 合計送料の取得 … … 1620 1620 1621 1621 // 合計の計算 1622 $arrData['total'] = $objPage->tpl_total_ pretax[$key]; // 商品合計1622 $arrData['total'] = $objPage->tpl_total_inctax[$key]; // 商品合計 1623 1623 $arrData['total']+= $arrData['deliv_fee']; // 送料 1624 1624 $arrData['total']+= $arrData['charge']; // 手数料 … … 1858 1858 * @return integer 税金付与した金額 1859 1859 */ 1860 function sf PreTax($price, $tax = null, $tax_rule = null) {1860 function sfCalcIncTax($price, $tax = null, $tax_rule = null) { 1861 1861 // 店舗基本情報を取得 1862 1862 $CONF = SC_Helper_DB_Ex::sfGetBasisData(); 1863 1863 1864 return SC_Utils_Ex::sf PreTax($price, $CONF['tax'], $CONF['tax_rule']);1864 return SC_Utils_Ex::sfCalcIncTax($price, $CONF['tax'], $CONF['tax_rule']); 1865 1865 } 1866 1866
Note: See TracChangeset
for help on using the changeset viewer.
