製品オプションの位置を変更する方法はありますか? 商品数量の下にオプションを表示したい。wrapper.phtml を呼び出そうとしましapp/design/frontend/gallins/default/template/catalog/product/view/addtocart.phtml
たが、機能しませんでした。
私が今持っているものは次のとおりです。
- option
- qty
- add to cart button
しかし、数量の下にオプションを表示したくありません。
addtocart.phtml ->
<?php $_product = $this->getProduct(); ?>
<?php $buttonTitle = $this->__('Add to Cart'); ?>
<?php if ($_product->isSaleable()): ?>
<div class="add-to-cart">
<?php if (!$_product->isGrouped()): ?>
<div class="quantity">
<label for="qty"><?php echo $this->__('Qty:') ?></label>
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
<div class="clear"></div>
</div>
<?php endif; ?>
<!-- This is where I want to show options -->
<button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
<?php echo $this->getChildHtml('', true, true) ?>
</div>
試してみ<?php echo $this->getChildHtml('wrapper')
ましたが、うまくいきませんでした。