WooCommerce data-quantity more than one not working

I have a WooCommerce site where I have different customer groups that I manage via a plugin from German Market (B2B). There you can also set different minimum quantities for a product and customer group.

So I have created a condition for the add to cart button in the shop, where this minimum quantity should also be used for the attribute data-quantity.

screenshot_ 2023-12-12 um 10.12.09

This is also output correctly in the html code.

screenshot_ 2023-12-12 um 10.26.30

Nevertheless, only one piece is placed in the shopping cart instead of 10 in this case! It also does not work if you enter a number manually.

Hello @Regnalf,

Thanks for writing in! You may need to use a plugin for that. Kindly check this out:

Best Regards.

Thanks @ruenel, iI’m sorry, but I don’t need a plugin that allows me a decimal number of products and I have a working plugin for the minimum and maximum quantities.

But I have found out why it does not work. The customer didn’t want the WooCommerce Ajax functionality to show this round “Add to cart animation”. That’s why Ajax was disabled for the shopping cart in WooCommerce.

I guess that without Ajax this data-quantity attribute is not supported?

Hi @Regnalf,

I think you are correct on this. Still, I would suggest you report this to WooCommerce so you can get the actual clarification.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.