Changeset 18217 for branches


Ignore:
Timestamp:
2009/07/20 10:36:30 (15 years ago)
Author:
Seasoft
Message:

#454(非公開の商品を購入できる)を改修

Location:
branches/comu-ver2/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/helper/SC_Helper_DB.php

    r18200 r18217  
    266266        $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"; 
    267267        $table = "vw_product_class AS prdcls"; 
    268         $where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ?"; 
     268        $where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ? AND status = 1"; 
    269269        $objQuery->setorder("rank1 DESC, rank2 DESC"); 
    270270        $arrRet = $objQuery->select($col, $table, $where, array($product_id, $classcategory_id1, $classcategory_id2)); 
     
    384384                $objPage->tpl_total_deliv_fee+= ($arrData['deliv_fee'] * $arrCart['quantity']); 
    385385                $cnt++; 
    386             } else { 
    387                 // DBに商品が見つからない場合はカート商品の削除 
     386            } else { // DBに商品が見つからない場合、 
     387                $objPage->tpl_message .= "※現時点で販売していない商品が含まれておりました。該当商品をカートから削除しました。\n"; 
     388                // カート商品の削除 
    388389                $objCartSess->delProductKey('id', $arrCart['id']); 
    389390            } 
  • branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Confirm.php

    r18187 r18217  
    8282        // カート集計処理 
    8383        $objDb->sfTotalCart($this, $objCartSess); 
     84        if (strlen($this->tpl_message) >= 1) { 
     85            SC_Utils_Ex::sfDispSiteError(SOLD_OUT, '', true); 
     86        } 
    8487        // 一時受注テーブルの読込 
    8588        $arrData = $objDb->sfGetOrderTemp($uniqid); 
Note: See TracChangeset for help on using the changeset viewer.