Changeset 18562 for trunk/data/class/pages/products
- Timestamp:
- 2010/02/12 18:46:50 (16 years ago)
- Location:
- trunk/data/class/pages/products
- Files:
-
- 3 edited
-
LC_Page_Products_Detail.php (modified) (2 diffs)
-
LC_Page_Products_DetailImage.php (modified) (1 diff)
-
LC_Page_Products_List.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/class/pages/products/LC_Page_Products_Detail.php
r18432 r18562 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 // サブタイトルを取得 -
trunk/data/class/pages/products/LC_Page_Products_DetailImage.php
r17698 r18562 54 54 function process() { 55 55 $objView = new SC_SiteView(); 56 $objCartSess = new SC_CartSession( "", false);56 $objCartSess = new SC_CartSession(); 57 57 $objDb = new SC_Helper_DB_Ex(); 58 58 -
trunk/data/class/pages/products/LC_Page_Products_List.php
r18432 r18562 478 478 if (is_array($arrProduct_id) && !empty($arrProduct_id)) { 479 479 $where .= ' AND product_id IN (' . implode(',', $arrProduct_id) . ')'; 480 } else { 481 // 一致させない 482 $where .= ' AND 0<>0'; 480 483 } 481 484 … … 542 545 for($i = 0; $i < count($this->arrProducts); $i++) { 543 546 $this->lfMakeSelect($this->arrProducts[$i]['product_id'], $arrClassName, $arrClassCatName); 544 // 購入制限数を取得545 $this->lfGetSaleLimit($this->arrProducts[$i]);546 547 } 547 548 } … … 716 717 } 717 718 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 719 //支払方法の取得 729 720 //payment_id 1:代金引換 2:銀行振り込み 3:現金書留
Note: See TracChangeset
for help on using the changeset viewer.
