旋转按钮添加到购物车按钮 - magento 1.7

时间:2014-01-29 08:09:30

标签: php ajax xml magento-1.7 block

我是magento编程的新手。我想要个性化的产品列表magento。实际上,我会在“添加”按钮旁边添加任何按钮。 您将在下面找到我将解释的屏幕截图。 你能告诉我该怎么做吗?

(产品列表页面:\ app \ design \ frontend \ base \ default \ template \ catalog \ product \ list.phtml)

在我的list.phtml文件中,我编辑isSaleable()下的指令:?>在第90行到:

<?php if($_product->isSaleable()): ?>
            <form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form">                               
                <?php if(!$_product->isGrouped()): ?>                                 
                <span class="addToBox">
                <?php echo $this->__('Qty:') ?> <input name="qty" type="text" class="input-text qty" id="qty" maxlength="5" value="<?php echo $this->getMinimalQty($_product)== null?1:$this->getMinimalQty($_product) ?>"/> 
                <?php endif; ?> 
                <button class="form-button" type="submit"><?php echo $this->__('Add to Cart') ?></button>
                </span>
            </form>             
        <?php else: ?>

它可以工作,但我需要制作旋钮。

提前感谢您的帮助和建议。 这是一张图片中的插图。

desired

0 个答案:

没有答案