質問 > フロント機能 > 商品カテゴリの表示・非表示について |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
shop_bri |
投稿日時: 2010/7/27 17:11
対応状況: −−−
|
一人前 登録日: 2010/6/1 居住地: 愛媛県松山 投稿: 91 |
Re: 商品カテゴリの表示・非表示について ecbg様
何度もありがとうございます。 引用:
「カテゴリID」:0のとき「表示フラグ」:1//「カテゴリID」:1のとき「表示フラグ」:1//「カテゴリID」:2のとき「表示フラグ」:1//・・・ という感じででています。で「制御部分に問題がある」とは LC_Page_FrontParts_Block_Category_EX.php のことですよね。以下のようになっているのですが、 どこに問題があるのかが解りません。 申し訳ありません。良かったら見ていただけますか? // カテゴリツリーの取得 function lfGetCatTree($arrParent_category_id, $count_check = false) { $objQuery = new SC_Query(); $objDb = new SC_Helper_DB_Ex(); $col = "*"; $from = "dtb_category left join dtb_category_total_count using (category_id)"; // 登録商品数のチェック if($count_check) { $where = "del_flg = 0 AND product_count > 0"; } else { $where = "del_flg = 0"; } $objQuery->setoption("ORDER BY rank DESC"); $arrRet = $objQuery->select($col, $from, $where); foreach ($arrParent_category_id as $category_id) { $arrParentID = $objDb->sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $category_id); $arrBrothersID = SC_Utils_Ex::sfGetBrothersArray($arrRet, 'parent_category_id', 'category_id', $arrParentID); $arrChildrenID = SC_Utils_Ex::sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $category_id); $this->root_parent_id[] = $arrParentID[0]; $arrDispID = array_merge($arrBrothersID, $arrChildrenID); foreach($arrRet as $key => $array) { foreach($arrDispID as $val) { if($array['category_id'] == $val) { $arrRet[$key]['display'] = $arrRet[$key]['view_flag']; break; } } } } $this->arrTree = $arrRet; } 宜しくご教授お願いいたします。m(__)m |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
商品カテゴリの表示・非表示について | shop_bri | 2010/7/22 7:49 |
Re: 商品カテゴリの表示・非表示について | ecbg | 2010/7/22 19:27 |
Re: 商品カテゴリの表示・非表示について | shop_bri | 2010/7/24 7:07 |
Re: 商品カテゴリの表示・非表示について | ecbg | 2010/7/24 23:38 |
Re: 商品カテゴリの表示・非表示について | shop_bri | 2010/7/26 8:31 |
Re: 商品カテゴリの表示・非表示について | ecbg | 2010/7/26 13:44 |
» Re: 商品カテゴリの表示・非表示について | shop_bri | 2010/7/27 17:11 |
Re: 商品カテゴリの表示・非表示について | ecbg | 2010/7/28 13:28 |