Ignore:
Timestamp:
2011/11/10 21:40:25 (11 years ago)
Author:
Seasoft
Message:

#1546 (SC_Helper_DB#sfCountCategory dtb_category_total_count の算出で在庫の有無を考慮できない)

File:
1 edited

Legend:

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

    r21320 r21323  
    773773            $where = "($sql_where) AND ($sql_where_product_ids)"; 
    774774 
     775            if (NOSTOCK_HIDDEN) { 
     776                $sql_where_product_ids .= ' AND stock >= 1 OR stock_unlimited = 1'; 
     777            } 
     778 
    775779            $from = $objProduct->alldtlSQL($sql_where_product_ids); 
    776780            $sql = "SELECT count(*) FROM $from WHERE $where "; 
Note: See TracChangeset for help on using the changeset viewer.