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 );

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.