初めまして。
プログラミング初心者です。
2.17.1バージョンのEC-CUBE管理画面から
スマートフォン用のテンプレートのフッターから
MYページのボタンを消したいと思い、
ブロック設定の「【フッター】ナビ」のコードを触ったところ
ページが表示されないエラーになってしまいました。
うっかりしていて、コピーもせずに更新してしまったので初期状態のコードが分かりません。
元のコードが分かる方がいらっしゃいましたら教えて頂けませんでしょうか。
また、MYページのボタンを消す手順もご存じの方がいらっしゃいましたらご教示いただけますと幸いです。
▼テンプレート
[EC-CUBE] 2.17.1 自分のサーバーにダウンロードしています。
[レンタルサーバ] ロリポップ
[OS] Windows 11
[データベース] ロリポップのデータベース
[ブラウザ] Google chrome
[導入プラグインの有無] 無
[カスタマイズの有無] 主にレイアウトのカスタマイズを行いました。
[現象]
以下の手順でエラーが起きました。
(1) EC-CUBE管理画面>デザイン管理>ブロック設定>【フッター】ナビ
のMYページの文字列があるあたりのコードを消去。
●現在のコード
<!--{*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.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.
*}-->
<ul class="footer_navi">
<!--{if $smarty.const.OPTION_FAVORITE_PRODUCT == 1}-->
<li><a rel="external" href="<!--{$smarty.const.HTTPS_URL}-->mypage/favorite.php"><img src="<!--{$TPL_URLPATH}-->img/button/btn_footer_favorite_off.png" alt="お気に入り" width="75" height="50" /></a></li>
<!--{/if}-->
<!--{else}-->
<li><a data-transition="slideup" href="<!--{$smarty.const.HTTPS_URL}-->mypage/login.php"><img src="<!--{$TPL_URLPATH}-->img/button/btn_footer_favorite_off.png" alt="お気に入り" width="75" height="50" /></a></li>
<!--{/if}-->
<li><a rel="external" href="<!--{$smarty.const.CART_URL|h}-->"><img src="<!--{$TPL_URLPATH}-->img/button/btn_footer_cart_off.png" alt="カゴの中を見る" width="75" height="50" /></a></li>
<li><a rel="external" href="<!--{$smarty.const.TOP_URL}-->"><img src="<!--{$TPL_URLPATH}-->img/button/btn_footer_toppage_off.png" alt="トップページへ" width="75" height="50" /></a></li>
</ul>
(2)スマートフォンのページがシステムエラー画面に。
「システムエラーが発生しました。大変お手数ですがサイト管理者までご連絡ください。」
(3)EC-CUBE管理画面>システム設定>EC-CUBEログ表示からエラーログを確認