Re: [解決済み] メンテナンス中の表示、条件分岐について

フォーラム 使い方全般 [解決済み] メンテナンス中の表示、条件分岐について Re: [解決済み] メンテナンス中の表示、条件分岐について

#65578
kondoo
参加者

お返事ありがとうございます。

> maintenance.phpは本体のプログラムとなるため、アップグレードすると上書きされてしまいます

maintenance.phpはtemplates/cart下にあったので変更可能かと思い

別フォルダーに退避さましたが、問題ありそうならカスタマイズは中止します。

> カスタマイズしたコード

過去ログをもう一度調べなおし、一応思い通りの表示になりました。

参考トピック https://www.welcart.com/forum/topic.php?id=183

<?php

if(usces_is_item() || is_page("store")):

$html = '<div id="maintenance-page">

<div class="post">

<p>'.__('Maintaining now', 'usces').'</p>

<p>'.__('Please wait for a while.', 'usces').'</p>

</div>

</div>'; ?>

<?php else: ?>

<!--ウェルカート以外の固定ページの内容を表示したい-->

<?php $html .= $content; ?>

<!--//ウェルカート以外の固定ページの内容を表示したい-->

<?php endif; ?>