magento实时更新购物车商品数量
<td> <button onclick="addQtyone();" type="submit">+</button> <input id="qtyPro" name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__(‘Qty‘) ?>" maxlength="12" /> <button type="submit" onclick="redQtyone();">-</button> <div></div> </td> <script type="text/javascript"> function addQtyone() { var qtyPro=$(‘qtyPro‘); qtyPro.value = parseInt(qtyPro.value)+1; } function redQtyone() { var qtyPro=$(‘qtyPro‘); qtyPro.value = parseInt(qtyPro.value)-1; } </script>
magento购物车添加减少数量 实时更新购物车
时间: 2024-11-05 18:40:25