質問 > フロント機能 > 商品カテゴリの非表示について |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
shop_bri |
投稿日時: 2010/11/14 8:36
対応状況: −−−
|
一人前 ![]() ![]() 登録日: 2010/6/1 居住地: 愛媛県松山 投稿: 91 |
商品カテゴリの非表示について EC-CUBE 2.4.3
レンタルサーバー ABLENET OS windows XP PHP 5.2.9. データベース MySQL 5.0.77 WEBサーバー apache お世話になります。 特定のカテゴリを左メニューから非表示にしたく http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=4546&forum=10&post_id=20702#forumpost20702を参考にさせていただいています。 <!--{if $arrTree[cnt].category_id != 該当カテゴリID}--> を追加することはわかったのですが、 私の/html/user_data/packages/default/bloc/category.tpl のどこに入れればいいのかわかりません。 初心者なのに、いろいろ参考にしてカスタマイズしていますので 上記スレッドの方とは、phpソースが全然違うようですので・・・ <!--{* 階層を level へ *}--> <!--{assign var=level value="`$arrTree[cnt].level`}--> <!--{* 最上位階層のリスト終了タグ *}--> <!--{if $level == 1 && !$smarty.section.cnt.first}--> </ul> <!--{/if}--> <!--{* カテゴリ名を disp_name へ *}--> <!--{assign var=disp_name value="`$arrTree[cnt].category_name`"}--> <!--{* 表示カテゴリのみ *}--> <!--{* if $arrTree[cnt].display == 1 *}--> <!--{* 選択したカテゴリ *}--> <!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) || in_array($arrTree[cnt].category_id, $root_parent_id)}--> <!--{if $level == 1}--> <ul class="now"> <li> <!--{else}--> <ul class="now"> <li> <!--{/if}--> <!--{* 未選択カテゴリ *}--> <!--{else}--> <!--{if $level == 1}--> <ul id="category" class="now"> <li> <!--{else}--> <li> <!--{/if}--> <!--{/if}--> <!--{* 選択したカテゴリ *}--> <!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--><!--{if $level >1}--> <img src="<!--{$smarty.const.TPL_DIR}-->images/category<!--{$arrTree[cnt].category_id}-->.jpg" width="35" height="35" alt="" /> <a href="<!--{$smarty.const.URL_DIR}-->products/list<!--{$arrTree[cnt].category_id}-->.html"><!--{$disp_name|sfCutString:40|escape}--></a> <!--{/if}--> <!--{* 未選択カテゴリ *}--> <!--{else}--> <!--{if $level >1}--> <a href="<!--{$smarty.const.URL_DIR}-->products/list<!--{$arrTree[cnt].category_id}-->.html"><!--{$disp_name|sfCutString:40|escape}--></a> <!--{/if}--><!--{/if}--> <!--{if $level == 1}--> <a href="<!--{$smarty.const.URL_DIR}-->products/list<!--{$arrTree[cnt].category_id}-->.html"> <img src="<!--{$smarty.const.TPL_DIR}-->images/category<!--{$arrTree[cnt].category_id}-->.gif" width="175" height="60" alt="" /> </a> </li> <!--{else}--> </li> <!--{/if}--> <!--{* /if *}--> <!--{* 最後に閉じるリスト終了タグ *}--> <!--{if $smarty.section.cnt.last}--> </ul> <!--{/if}--> <!--{/section}--> </div> <!--/category end--> いろいろ試してみたのですが、どこに入れてもエラーになります。 教えていただけるとうれしいです。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» ![]() |
shop_bri | 2010/11/14 8:36 |
![]() |
AMUAMU | 2010/11/15 0:33 |
![]() |
shop_bri | 2010/11/15 6:55 |
![](images/pixel.gif)