概要
指定された商品IDに付与されているポイント数を取得します。
使い方
|
1 2 3 |
<ul> <li><?php echo o::getProductPoint($pid); ?></li> </ul> |
引数の内容
* $pid : 商品IDを指定します。
返り値
Int
例)100
使用例
|
1 2 3 4 5 6 7 8 |
<!--point --> <span class="point"> <?php $point = o::getProductPoint($this->p_id); if ($point) : ?> <?php echo sprintf(TEXT_POINT_BACK, $point); ?></span> <?php endif;?> <!--point// --> |