Ignore:
Timestamp:
2009/12/01 12:58:00 (14 years ago)
Author:
kajiwara
Message:

#454 非公開商品を購入できる不具合を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/class/helper/SC_Helper_DB.php

    r18115 r18402  
    257257        $col = "product_id, deliv_fee, name, product_code, main_list_image, main_image, price01, price02, point_rate, product_class_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited, sale_limit, sale_unlimited"; 
    258258        $table = "vw_product_class AS prdcls"; 
    259         $where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ?"; 
     259        $where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ? AND status = 1"; 
    260260        $objQuery->setorder("rank1 DESC, rank2 DESC"); 
    261261        $arrRet = $objQuery->select($col, $table, $where, array($product_id, $classcategory_id1, $classcategory_id2)); 
     
    380380                $objPage->tpl_total_deliv_fee+= ($arrData['deliv_fee'] * $arrCart[$i]['quantity']); 
    381381                $cnt++; 
    382             } else { 
    383                 // DBに商品が見つからない場合はカート商品の削除 
     382            } else { // DBに商品が見つからない場合はカート商品の削除 
     383                $objPage->tpl_message .= "※申し訳ございませんが、ご購入の直前で売り切れた商品があります。該当商品をカートから削除いたしました。\n"; 
     384                // カート商品の削除 
    384385                $objCartSess->delProductKey('id', $arrCart[$i]['id']); 
    385386            } 
Note: See TracChangeset for help on using the changeset viewer.