商品詳細ページのレイアウトを変更する時のテンプレタグ備忘録(一部)
商品名の表示
<?php usces_the_itemName(); ?>
購入個数入力フィールド
<?php usces_the_itemQuant(); ?>
単位の表示
<?php usces_the_itemSkuUnit(); ?>
カゴボタンの表示
<?php usces_the_itemSkuButton('カゴへ', 0); ?>
商品コード(商品番号)の表示
<?php usces_the_itemCode(); ?>
定価(通常価格)の表示
¥<?php usces_the_itemCprice(); ?>
販売価格の表示
¥<?php usces_the_itemPrice(); ?>
在庫の有り
<?php usces_the_itemZaiko(); ?>
(税込)の表示
<?php usces_guid_tax(); ?>
商品画像の表示
<?php usces_the_itemImage(0, 100, 100); ?>
商品画像を画像リンク
<あ href="<?php usces_the_itemImageURL(0); ?>"><?php usces_the_itemImage(0, 100, 100); ?></あ>
パラメーターを変更するとサブ画像の表示
例) サブ画像1を表示
<?php usces_the_itemImage(1, 100, 100); ?>
サブ画像1を画像リンクに
<あ href="<?php usces_the_itemImageURL(1); ?>"><?php usces_the_itemImage(1, 100, 100); ?></あ>
サブ画像を表示一覧表示
<?php $imageid = usces_get_itemSubImageNums(); foreach ( $imageid as $id ) : ?><?php usces_the_itemImage($id, 100, 100); ?>
<?php endforeach; ?>
上のサブ画像テンプレタグの部分
を下にすると画像リンク
<あ href="<?php usces_the_itemImageURL($id); ?>"><?php usces_the_itemImage($id, 100, 100); ?></あ>
とりあえずここまで
PR