Home > EC-CUBE | カスタマイズ > ブロックを条件分岐で表示させる

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

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

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


Comments:0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://www.wiz.gr.jp/wordpress/112/trackback
Listed below are links to weblogs that reference
ブロックを条件分岐で表示させる from WIZ-WORDPRESS│EC-CUBE-LABO

Home > EC-CUBE | カスタマイズ > ブロックを条件分岐で表示させる

Return to page top