Home > Tags > ブロック
ブロック
ブロックを条件分岐で表示させる
カテゴリーidが1もしくは詳細ページなどの商品idが2のときにブロックを表示させたい場合、ブロックを下記のようにする。
<!--{if $category_id == "1"or $arrProduct.product_id == "2"}-->
ブロックの内容
<!--{/if}-->
- Comments: 0
- Trackbacks: 0
Home > Tags > ブロック
WordpressやEC-CUBEなどのカスタマイズをしたときのメモ
Home > Tags > ブロック
カテゴリーidが1もしくは詳細ページなどの商品idが2のときにブロックを表示させたい場合、ブロックを下記のようにする。
<!--{if $category_id == "1"or $arrProduct.product_id == "2"}-->
ブロックの内容
<!--{/if}-->
Home > Tags > ブロック