Re: オプションを表示するテンプレートタグ

フォーラム テンプレート(テーマ) オプションを表示するテンプレートタグ Re: オプションを表示するテンプレートタグ

#59755
nafkln
参加者

nanbuさん、ありがとうございます。

そのまま、記述したところ

Fatal error: Using $this when not in object context in /home/rockhands/www/wp-content/themes/example/ec_list.php on line 40

と出てしまいます。

商品の一覧を表示しているページで

<table>

<tr>

<td rowspan=”4″ class=”photo”>“><?php usces_the_itemImage(0, 240, 160); ?></td>

<th>品名:</th>

<td class=”title”>“><?php usces_the_itemName(); ?></td>

</tr>

<th>価格:</th>

<td><?php usces_have_skus(); ?><!? SKU情報取得準備タグ ?><span class=”price”><?php usces_the_itemPrice(); ?>円</span></td>

</tr>

<tr>

<th>数量:</th>

<td><?php usces_the_itemQuant(); ?> <?php usces_the_itemSkuButton(‘カートへ入れる’); ?></td>

</tr>

</table>

「品名」「価格」「数量」「カートに入れる」というようにtableで組んであるのですが、この「数量」の前に<tr>を作ってオプションを入れて、選択させたいのですが、どうすればよろしいでしょうか?

シングルページで、個々にやるべきでしょうか?