How to add +/- or up and down arrow for quantity box in product detail page
Look like this
teitbite wrote:Hi
Please simply make Your own image with "+" and "-"
<?php // Display the quantity box
$stockhandle = VmConfig::get ('stockhandle', 'none');
if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and ($this->product->product_in_stock - $this->product->product_ordered) < 1) { ?>
<a href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id=' . $this->product->virtuemart_product_id); ?>" class="notify"><?php echo JText::_ ('COM_VIRTUEMART_CART_NOTIFY') ?></a>
<?php } else { ?>
<span class="quantity-box">
<input type="text" class="quantity-input js-recalculate" name="quantity[]" onblur="check(this);" value="<?php if (isset($this->product->step_order_level) && (int)$this->product->step_order_level > 0) {
echo $this->product->step_order_level; } else if(!empty($this->product->min_order_level)){ echo $this->product->min_order_level; }else { echo '1'; } ?>"/>
</span>
<span class="quantity-controls js-recalculate">
<input type="button" class="quantity-controls quantity-plus"/>
<input type="button" class="quantity-controls quantity-minus"/>
</span>
<?php // Display the quantity box END ?>
.quantity-plus {background: url(../images/vm/cartquantity.png) no-repeat 0 0 #000000!important;}
.quantity-minus {background: url(../images/vm/cartquantity.png)no-repeat 0 -38px #000000!important;}
.quantity-plus:hover {background: url(../images/vm/cartquantity.png) no-repeat 0 0 #ff7e57!important;}
.quantity-minus:hover {background: url(../images/vm/cartquantity.png)no-repeat 0 -38px #ff7e57!important;}
.quantity-plus {background: url(../images/vm/cartquantity.png) no-repeat 0 0 #000000!important;}
.quantity-minus {background: url(../images/vm/cartquantity.png)no-repeat 0 -38px #000000!important;}
.quantity-plus:hover {background: url(../images/vm/cartquantity.png) no-repeat 0 0 #56bfdc!important;}
.quantity-minus:hover {background: url(../images/vm/cartquantity.png)no-repeat 0 -38px #56bfdc!important;}
.quantity-plus {background: url(../images/vm/cartquantity.png) no-repeat 0 0 #000000!important;}
.quantity-minus {background: url(../images/vm/cartquantity.png)no-repeat 0 -38px #000000!important;}
.quantity-plus:hover {background: url(../images/vm/cartquantity.png) no-repeat 0 0 #96a0d6!important;}
.quantity-minus:hover {background: url(../images/vm/cartquantity.png)no-repeat 0 -38px #96a0d6!important;}
/templates/gk_storebox/html/com_virtuemart/