Home > Tags > 条件分岐

条件分岐

ブロックを条件分岐で表示させる

カテゴリーidが1もしくは詳細ページなどの商品idが2のときにブロックを表示させたい場合、ブロックを下記のようにする。

<!--{if $category_id == "1"or $arrProduct.product_id == "2"}-->
 ブロックの内容
 <!--{/if}-->


Home > Tags > 条件分岐

Return to page top