Changeset 18465 for branches/version-2_4-dev
- Timestamp:
- 2010/01/06 14:05:22 (13 years ago)
- Location:
- branches/version-2_4-dev/data/class
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_4-dev/data/class/helper/SC_Helper_DB.php
r18416 r18465 315 315 $limit = $arrData['sale_limit']; 316 316 } else { 317 $limit = $arrData['stock']; 317 // 購入制限数を在庫数に 318 #$limit = $arrData['stock']; 319 // 購入制限数をSALE_LIMIT_MAXに 320 $limit = SALE_LIMIT_MAX; 318 321 } 319 322 } else { … … 322 325 } 323 326 if ($arrData['stock_unlimited'] != '1') { 324 $limit = $arrData['stock']; 327 // 購入制限数を在庫数に 328 #$limit = $arrData['stock']; 329 // 購入制限数をSALE_LIMIT_MAXに 330 $limit = SALE_LIMIT_MAX; 325 331 } 326 332 } -
branches/version-2_4-dev/data/class/pages/products/LC_Page_Products_Detail.php
r18407 r18465 222 222 $this->arrProductCode = $arrProductCode["product_code"]; 223 223 224 // 購入制限数を取得225 if($this->arrProduct['sale_unlimited'] == 1 || $this->arrProduct['sale_limit'] > SALE_LIMIT_MAX) {226 $this->tpl_sale_limit = SALE_LIMIT_MAX;227 } else {228 $this->tpl_sale_limit = $this->arrProduct['sale_limit'];229 }230 224 // サブタイトルを取得 231 225 $arrCategory_id = $objDb->sfGetCategoryId($arrRet[0]['product_id'],'',$status); … … 445 439 $arrProductCode = SC_Utils_Ex::sfswaparray($arrProductCode); 446 440 $this->arrProductCode = $arrProductCode["product_code"]; 447 448 // 購入制限数を取得449 if($this->arrProduct['sale_unlimited'] == 1 || $this->arrProduct['sale_limit'] > SALE_LIMIT_MAX) {450 $this->tpl_sale_limit = SALE_LIMIT_MAX;451 } else {452 $this->tpl_sale_limit = $this->arrProduct['sale_limit'];453 }454 441 455 442 // サブタイトルを取得 -
branches/version-2_4-dev/data/class/pages/products/LC_Page_Products_List.php
r18418 r18465 542 542 for($i = 0; $i < count($this->arrProducts); $i++) { 543 543 $this->lfMakeSelect($this->arrProducts[$i]['product_id'], $arrClassName, $arrClassCatName); 544 // 購入制限数を取得545 $this->lfGetSaleLimit($this->arrProducts[$i]);546 544 } 547 545 } … … 716 714 } 717 715 718 // 購入制限数の設定719 function lfGetSaleLimit($product) {720 //在庫が無限または購入制限値が設定値より大きい場合721 if($product['sale_unlimited'] == 1 || $product['sale_limit'] > SALE_LIMIT_MAX) {722 $this->tpl_sale_limit[$product['product_id']] = SALE_LIMIT_MAX;723 } else {724 $this->tpl_sale_limit[$product['product_id']] = $product['sale_limit'];725 }726 }727 728 716 //支払方法の取得 729 717 //payment_id 1:代金引換 2:銀行振り込み 3:現金書留
Note: See TracChangeset
for help on using the changeset viewer.