質問 > フロント機能 > カテゴリツリーが表示されず |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
knox |
投稿日時: 2013/1/23 10:14
対応状況: −−−
|
新米 登録日: 2013/1/17 居住地: 投稿: 9 |
Re: カテゴリツリーが表示されず ご返信有難う御座います。
ec-cubeの管理画面>デザイン管理>レイアウト設定ページには カテゴリブロックが表示されております。 そのブロックの編集ボタンを押すと下記のようなソースが表示されます。 ______________________________ <!--{* * This file is part of EC-CUBE * * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved. * * http://www.lockon.co.jp/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *}--> <script type="text/javascript">//<![CDATA[ $(function(){ $('#category_area li.level1:last').css('border-bottom', 'none'); }); //]]></script> <div class="block_outer"> <div id="category_area"> <div class="block_body"> <h2><img src="<!--{$TPL_URLPATH}-->img/title/tit_bloc_category.gif" alt="商品カテゴリ" /></h2> <!--{strip}--> <ul id="categorytree"> <!--{assign var=preLev value=1}--> <!--{assign var=firstdone value=0}--> <!--{section name=cnt loop=$arrTree}--> <!--{* 表示フラグがTRUEなら表示 *}--> <!--{if $arrTree[cnt].display == 1}--> <!--{assign var=level value=`$arrTree[cnt].level`}--> <!--{assign var=levdiff value=`$level-$preLev`}--> <!--{if $levdiff > 0}--> <ul> <!--{elseif $levdiff == 0 && $firstdone == 1}--> </li> <!--{elseif $levdiff < 0}--> <!--{section name=d loop=`$levdiff*-1`}--> </li> </ul> <!--{/section}--> </li> <!--{/if}--> <li class="level<!--{$level}--><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id)}--> onmark<!--{/if}-->"> <p> <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->"<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id)}--> class="onlink"<!--{/if}-->><!--{$arrTree[cnt].category_name|h}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> </p> <!--{if $firstdone == 0}--><!--{assign var=firstdone value=1}--><!--{/if}--> <!--{assign var=preLev value=`$level`}--> <!--{/if}--> <!--{* セクションの最後に閉じタグを追加 *}--> <!--{if $smarty.section.cnt.last}--> <!--{if $preLev-1 > 0}--> <!--{section name=d loop=`$preLev-1`}--> </li> </ul> <!--{/section}--> </li> <!--{else}--> </li> <!--{/if}--> <!--{/if}--> <!--{/section}--> </ul> <!--{/strip}--> </div> </div> </div> ______________________________ この状態でプレビューボタン、もしくはサイトにアクセスしたところカテゴリのタイトル画像【商品一覧】という画像は(こちらはGIFに変更しました)表示されておりますが、 その下に出るはずのカテゴリーリストが表示されておりません。 カテゴリーと商品の紐付けに関してですが、 管理画面の商品管理>商品登録内の 商品カテゴリ の箇所に表示されておりますカテゴリリストから選択しました。 商品マスターで確認するとカテゴリ-には当方で書いたカテゴリが出ています。 もし、既存の商品を削除してしまったのが原因であれば、インストール時の商品をもう一度入れなおせば原因の方掴めめるでしょうか? 宜しくお願い致します。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
カテゴリツリーが表示されず | knox | 2013/1/23 6:54 |
Re: カテゴリツリーが表示されず | kato-sc | 2013/1/23 9:39 |
Re: カテゴリツリーが表示されず | shutta | 2013/1/23 9:40 |
» Re: カテゴリツリーが表示されず | knox | 2013/1/23 10:14 |
Re: カテゴリツリーが表示されず | shutta | 2013/1/23 11:07 |
Re: カテゴリツリーが表示されず | knox | 2013/1/23 11:13 |
Re: カテゴリツリーが表示されず | shutta | 2013/1/23 11:25 |
Re: カテゴリツリーが表示されず | knox | 2013/1/23 11:31 |
Re: カテゴリツリーが表示されず | shutta | 2013/1/23 12:21 |
Re: カテゴリツリーが表示されず | knox | 2013/1/23 12:37 |
Re: カテゴリツリーが表示されず | shutta | 2013/1/23 13:00 |
Re: カテゴリツリーが表示されず | knox | 2013/1/23 13:06 |
Re: カテゴリツリーが表示されず | shutta | 2013/1/23 14:53 |
Re: カテゴリツリーが表示されず | knox | 2013/1/24 5:58 |