「掲載期間」が表示されるようにデザインされているテンプレートでは
商品に「掲載期間」を設定すると表示されます。
| テンプレート | 掲載期間の表示 | 掲載期間外の表示 |
| 【Debut】 | × | 〇「販売期間外の商品です」 |
| 【Minimum】 | × | 〇「販売期間外の商品です」 |
| 【Advance】 | × | 〇「販売期間外の商品です」 |
| 【Shiro】 | × | 〇「販売期間外の商品です」 |
| 【Wabisabi】 | × | 〇「販売期間外の商品です」 |
| 【Complete】 | 〇 | 〇「現在購入いただけません」 |
| 【BRothers】 | 〇 | 〇「現在購入いただけません」 |
| 【&more】 | 〇 | 〇「販売期間外の商品です」 |
| 【Manabito】 | 〇 | 〇「coming soon」 |
| 【Basics】 | 〇 | 〇「販売期間外の商品です」 |
| 【Simplecase】 | 〇 | 〇「販売期間外の商品です」 |
| 【Garden】 | 〇 | 〇「現在購入いただけません」 |
「掲載期間の表示」が初期値に無いデザインテンプレートでも、ソースを記述することで表示されます。
ショップデザイン / テンプレート選択・編集 / クリエイターモード / 商品詳細
「HTML」欄に「掲載期間」の変数タグを使用してソースを記述してください。
<記述例>
<!--掲載期間-->
<{if $item.is_sell_start || $item.is_sell_end}>
<{if $item.is_sell_start}>
<p>販売開始:<{$item.sell_start.year}>年<{$item.sell_start.month}>月<{$item.sell_start.day}>日<{$item.sell_start.hour}>:<{$item.sell_start.minute}></p>
<{/if}>
<{if $item.is_sell_end}>
<p>販売終了:<{$item.sell_end.year}>年<{$item.sell_end.month}>月<{$item.sell_end.day}>日<{$item.sell_end.hour}>:<{$item.sell_end.minute}></p>
<{/if}>
<{/if}>
掲載期間中と期間外で表示を変えるには
「 期間中かどうか(真偽値)」の変数タグ
<{if $item.is_within_sell_period}>
<{/if}>
を使用してソースを作成してください。
<記述例>
<{if $item.is_within_sell_period}>
★掲載期間中はこの位置の内容を表示★
<{else}>
☆掲載期間外はこの位置の内容を表示☆
<{/if}>
カートボタン、数量変更欄などを掲載期間外に非表示にしたい場合は、★の位置に記述してください。
「購入できません」「販売前の商品です」などを表示させたい場合は☆の位置に記述してください。
掲載期間中に販売開始日時の表記を非表示にするには
上記の方法のほかに、「 期間中かどうか(真偽値)」の変数タグを使用して
「期間中を除く」という条件での指定が可能です。
<{if !$item.is_within_sell_period}>
<{/if}>
<記述例>
<{if $item.is_sell_start || $item.is_sell_end}>
<{if !$item.is_within_sell_period}>
<{if $item.is_sell_start}>
<p>販売開始:<{$item.sell_start.year}>年<{$item.sell_start.month}>月<{$item.sell_start.day}>日<{$item.sell_start.hour}>:<{$item.sell_start.minute}></p>
<{/if}>
<{/if}>
<{if $item.is_sell_end}>
<p>販売終了:<{$item.sell_end.year}>年<{$item.sell_end.month}>月<{$item.sell_end.day}>日<{$item.sell_end.hour}>:<{$item.sell_end.minute}></p>
<{/if}>
<{/if}>
商品詳細ページ以外のページには掲載期間の条件を判定する変数タグがないため、掲載期間を表示させることはできません。
■makeshopサポート
SNSなどで事前にプロモーションできる!「販売予告機能」で販売前の商品ページを表示してみよう【ベーシックモード】
https://www.support.makeshop.jp/design/?p=14336


