Add product to cart for user – WC()->cart->add_to_cart
I’m trying to add a product to the cart for a user. I am using
WC()->cart->add_to_cart. But it’s not working, I checked docs, but nothing found there,
I just wanted to add to cart product on specific user id.