バージョン選択

フォーラム

メニュー

オンライン状況

57 人のユーザが現在オンラインです。 (42 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 57
もっと...

サイト内検索

質問 > その他 > (2.12.3)カテゴリーを消す方法について

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
sumida
投稿日時: 2014/7/30 14:50
対応状況: −−−
仙人
登録日: 2013/2/10
居住地: 広島県呉市ときどき瀬戸内海
投稿: 641
Re: (2.12.3)カテゴリーを消す方法について
こういうことですかね?

LC_Page_FrontParts_Bloc_Category.php

                // 選択中のカテゴリID
                $this->tpl_category_id = $this->lfGetSelectedCategoryId($_GET);
// added
                // 親カテゴリツリーの取得
                $arrParent_tpl_category_id = SC_Helper_DB_Ex::sfGetParents('dtb_category', 'parent_category_id', 'category_id', $this->tpl_category_id);
                $parentCount = count($arrParent_tpl_category_id);
                if ($parentCount == 1) {
                    // トップページ又は第1階層カテゴリ表示
                    $this->parent_tpl_category_id = '0';
                } else {
                    // 第2階層以降カテゴリ表示
                    $this->parent_tpl_category_id = $arrParent_tpl_category_id[$parentCount-2];
                }
// added


category.tpl

                        <!--{* 表示フラグがTRUEなら表示 *}-->
<!--{* changed
                        <!--{if $arrTree[cnt].display == 1}-->
changed *}-->
                        <!--{if $arrTree[cnt].display == 1 && ($arrTree[cnt].category_id == $parent_tpl_category_id || $arrTree[cnt].parent_category_id ==  $parent_tpl_category_id)}-->
<!--{* changed *}-->


追記:
この修正コードでは、
階層の深いカテゴリを表示した場合、
たぶん、カテゴリブロック内の<li>タグと</li>タグの数が一致しなくなるので、
ダメな修正案でした。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   (2.12.3)カテゴリーを消す方法について motorp 2014/7/29 16:42
     Re: (2.12.3)カテゴリーを消す方法について tsuji 2014/7/30 9:24
       Re: (2.12.3)カテゴリーを消す方法について motorp 2014/7/30 13:25
       » Re: (2.12.3)カテゴリーを消す方法について sumida 2014/7/30 14:50
           Re: (2.12.3)カテゴリーを消す方法について motorp 2014/7/30 20:34
             Re: (2.12.3)カテゴリーを消す方法について sumida 2014/7/30 22:28
         Re: (2.12.3)カテゴリーを消す方法について tsuji 2014/7/31 9:27
           Re: (2.12.3)カテゴリーを消す方法について motorp 2014/7/31 17:39
           Re: (2.12.3)カテゴリーを消す方法について motorp 2014/7/31 17:42
             Re: (2.12.3)カテゴリーを消す方法について motorp 2014/8/5 17:15
               Re: (2.12.3)カテゴリーを消す方法について sumida 2014/8/5 20:37
                 Re: (2.12.3)カテゴリーを消す方法について motorp 2014/8/5 23:37

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,223名です
総投稿数は110,052件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1651
8
red
1570
9
mcontact
1299
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.