Reputation: 621
What I want to do is have a dropdown/text box for quantity before the user clicks add to cart.
My goal is to have the quantity already set when the product goes into the cart; the user cannot modify the quantity of a product already in the cart for certain reasons (business process).
Woocommerce add_to_cart_url() only takes the product ID.
Does anyone have any experience in doing something similar to this?
Upvotes: 0
Views: 2295
Reputation: 21681
You will need to create an override folder hierarchy within wp-content/themes/YOUR-THEME/woocommerce/loop/add-to-cart.php.
You can find more details here. It works perfectly.
Thanks!
Upvotes: 0