Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: [SOLVED] Plus and Minus icons change quantity by 2

[SOLVED] Plus and Minus icons change quantity by 2 9 years 9 months ago #888

Hello,

I don't know when this started happening but on a product details page the default quantity to add to cart is 1. When I press + it changes to 3, then 5, then 7. Same applies for -. It increases and decreases in 2s. You can see an example of this here:

www.frenchfashiononline.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=22&virtuemart_category_id=2

Thanks in advance for your replies.
Last Edit: 9 years 9 months ago by Support.
The topic has been locked.

plus and minus buttons change quantity by 2 9 years 9 months ago #892

Hi,

I truly understand the problem. Unfortunately i don't have the solution. Weirdly, it happens in some website rarely. It is not due to JAVA conflict though, it is because of something that i have never figured out. It happened to one of our clients before and i have spent hours in his server, without finding actually what causes that.

Are you using Virtuemart 2.0.12b+ and Virtuemart AIO 2.0.12b+ ? Please make sure you are using the latest versions. At least use the AIO 2.0.12b, because the pricing calculations and things like these are held by this component.

If you already have the latest version; the best thing i can offer you is to disable the "plus and minus" sign completely

And add this LINE:
<input type="hidden" class="quantity-input js-recalculate" name="quantity[]" value="1">

Which will let you add "1" product right away once the add to cart button is clicked.

OR put a manual dropdown box there. Up to 9 quantity or whatever quantity you want. Which will be something like this:
<select class="quantity-input js-recalculate" name="quantity[]">
  	    <option value="1">1</option>
  	    <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            <option value="6">6</option>
            <option value="7">7</option>
            <option value="8">8</option>
            <option value="9">9</option>   
</select>

OR you can use the regular input text field what user can change the value simply by editing it. It will be something like:
<input type="text" class="quantity-input js-recalculate" name="quantity[]" value="1" />


Cheers.
Flexible Support Team.
Last Edit: 9 years 9 months ago by Support.
The topic has been locked.

plus and minus buttons change quantity by 2 9 years 9 months ago #893

Forget about my previous post, and look what i have found:

forum.virtuemart.net/index.php?topic=100101.0

Which is the same issue as you are having, and someone has provided the solution. Looks like it was a bug of Virtuemart though.

Cheers.
The topic has been locked.

plus and minus buttons change quantity by 2 9 years 9 months ago #895

Thankyou so much, that's fantastic. I had searched the virtuemart forums but I must have been using the wrong keywords.

Thanks again
The topic has been locked.

plus and minus buttons change quantity by 2 9 years 9 months ago #908

Hi,

You might even use my other suggestion though, having "dropdown" box for quantities are also commonly used for well-known ecommerce store.

Cheers.
Case solved, Topic is closed.
The topic has been locked.
Time to create page: 0.247 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo