How to add woocommerce product to cart with javascript?

I am looking into creating a product configurator for my woocommerce store. Is there a way to add multiple products to the cart, once an add to cart button is clicked with JS? I have been looking around but cant find any definitive answers.

Should I be trying to do this with PHP or JS?

Read more here:: How to add woocommerce product to cart with javascript?

Leave a Reply

Your email address will not be published. Required fields are marked *