WooCommerce adding product to cart programatically
I have checkbox that when clicked should add a product to the cart ans when unclicked should remove it. Developer before me solved the problem using Fee’s which should be changed to product. He used add_action( 'woocommerce_cart_calculate_fees', 'checkout_radio_choice_product', 20, 1 ); I think I got the code to work I am just struggling to find … Read more