How can I cancel auto add to cart of mandatory products so it only will also act like the optional products?

you can add the following hook into your child theme functions.php

remove_action( 'woocommerce_add_to_cart', array( $WooCommerce_Product_Accessories->plugin_public, 'maybe_add_mandatory_accesories_to_cart' ), 35 );

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *