Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am trying to add x number of products input and button to my catalog page so I can select a number, then hit add to cart.

Is it possible to add in this function? The user will provide a number from my input to add that many products to the cart. This should function is exactly the same as "View Product page" with the and button to add to cart.

Are there hooks/actions that woocommerce runs for every product to be put into cart? How does woocommerce add products to cart?

There are easy ways to add single items to cart, but is adding multiples anyharder? Ever since 2.03, woocommerce has converted to use cookies to store cart information from using session. I'm unsure if it's the cookie I need to change, although that's secure encrypted.

Any ideas? Thanks

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.