Changeset 18636 for branches/comu-ver2
- Timestamp:
- 2010/05/08 16:42:15 (14 years ago)
- Location:
- branches/comu-ver2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2
-
Property
svn:mergeinfo
set to
/branches/version-2_4 merged eligible
-
Property
svn:mergeinfo
set to
-
branches/comu-ver2/data/class/pages/products/LC_Page_Products_Detail.php
r18374 r18636 231 231 $this->arrProduct = $arrRet[0]; 232 232 233 // 購入制限数を取得234 if (!SC_Utils_Ex::sfIsInt($this->arrProduct['sale_limit']) || $this->arrProduct['sale_limit'] > SALE_LIMIT_MAX) {235 $this->tpl_sale_limit = SALE_LIMIT_MAX;236 } else {237 $this->tpl_sale_limit = $this->arrProduct['sale_limit'];238 }239 233 240 234 // サブタイトルを取得 … … 432 426 $arrRet = $objQuery->select("*", "vw_products_allclass_detail AS alldtl", "product_id = ?", array($product_id)); 433 427 $this->arrProduct = $arrRet[0]; 434 435 // 購入制限数を取得436 if (!SC_Utils_Ex::sfIsInt($this->arrProduct['sale_limit']) || $this->arrProduct['sale_limit'] > SALE_LIMIT_MAX) {437 $this->tpl_sale_limit = SALE_LIMIT_MAX;438 } else {439 $this->tpl_sale_limit = $this->arrProduct['sale_limit'];440 }441 428 442 429 // サブタイトルを取得 -
branches/comu-ver2/data/class/pages/products/LC_Page_Products_List.php
r18396 r18636 478 478 foreach ($this->arrProducts as $product) { 479 479 $arrProductId[] = $product['product_id']; 480 // 購入制限数を取得481 $this->lfGetSaleLimit($product);482 480 } 483 481 … … 524 522 525 523 return $objErr->arrErr; 526 }527 528 // 購入制限数の設定529 // XXX 標準実装では「tpl_sale_limit」は利用されていないようである。カスタマイズ用?530 function lfGetSaleLimit($arrProduct) {531 //在庫が無限または購入制限値が設定値より大きい場合532 if (!SC_Utils_Ex::sfIsInt($arrProduct['sale_limit']) || $arrProduct['sale_limit'] > SALE_LIMIT_MAX) {533 $this->tpl_sale_limit[$arrProduct['product_id']] = SALE_LIMIT_MAX;534 } else {535 $this->tpl_sale_limit[$arrProduct['product_id']] = $arrProduct['sale_limit'];536 }537 524 } 538 525
Note: See TracChangeset
for help on using the changeset viewer.