add a item to cart woocomerce with quantity
snippet in c

add a item to cart woocomerce with quantity

user5337

WC()->cart->add_to_cart( 500, 5 );