How Add to Cart Quantity Buttons + / -

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Mar 07, 2013 3:38 am
Reply with quote
Report this post
Hi,

How i can add to cart Quantity buttons + / - to make it look like the picture

Thank you!
User avatar
Junior Boarder

Konrad M
Thu Mar 07, 2013 8:22 am
Reply with quote
Report this post
Hi,
please go to html/com_virtuemart/productdetails/default.php and please add this:
Code: Select all
<span class="quantity-controls js-recalculate">

      <input type="button" class="quantity-controls quantity-plus"/>

      <input type="button" class="quantity-controls quantity-minus"/>

       </span>

after this code:
Code: Select all
<span class="quantity-box">
                                          <input type="text" class="quantity-input" name="quantity[]" value="<?php if(isset($this->product->min_order_level) && (int) $this->product->min_order_level > 0){echo $this->product->min_order_level;} else{ echo '1'; } ?>" />
                                          </span>

and please check in Virtuemart settings if you disabled defult Virtuemart CSS. If not please do it.
User avatar

GK User
Thu Mar 07, 2013 5:30 pm
Reply with quote
Report this post
Hi Konrad.

Great :)

Thanks for your help!
User avatar
Junior Boarder

GK User
Thu Mar 07, 2013 7:22 pm
Reply with quote
Report this post
HI Konrad
Can I use the same code for gk_esport?
User avatar
Junior Boarder

Konrad M
Fri Mar 08, 2013 9:41 am
Reply with quote
Report this post
Yes you can use it to eSport template too.
User avatar

GK User
Fri Mar 08, 2013 6:02 pm
Reply with quote
Report this post
ok thank you :)
User avatar
Junior Boarder


cron