I managed to solve it already. Just deleted the data-quantity attribute and managed the attribute via jQuery. It now works as intended.
If someone is interested this helped me a ton: https://stackoverflow.com/questions/48722178/add-a-quantity-field-to-ajax-add-to-cart-button-on-woocommerce-shop-page
-
This reply was modified 4 years, 4 months ago by ignaaaam.
This was checked from the start, the problem is that is all made custom. I know where the error is and what is causing it, but I need someone that understand a bit more about PHP to be able to get the value from the input and pass it to the add to cart button data-quantity attribute on the add-to-cart.php file.
I’ll try later the community slack or the developer resource portal, but its not a complex error. Someone with a little bit more of knowledge of PHP than me should be able to solve it easy.
Thanks for your answer anyways!