[EC-CUBE 2.11.2] 全商品数を取得する

PHPロジック側で以下のコードを追加。

$objQuery =& SC_Query_Ex::getSingletonInstance();
$objQuery->setWhere('del_flg = 0');
$arrAllItems = $objQuery->select('product_id', 'dtb_products');
$this->itemAllCount = count($arrAllItems);

Smartyテンプレート側で以下のコードを追加。

<!--{$itemAllCount|default:0}-->