概要
商品IDによってメーカーの有無をチェックします。
使い方
<ul> <li><?php echo o::hasBrand($productId) ? 'メーカー情報' : 'メーカー無し'; ?></li> </ul>
引数の内容
- $productId : 商品IDを指定します。
返り値
bool
使用例
<?php if (o::hasBrand($this->p_id)) : ?> <!--Brand info--> <h3><?php echo c::getBrandNameByPid($this->p_id); ?></h3> <!--Brand info //--> <?php endif; ?>