How to Disable add to cart button via custom checkbox
Disable add to cart button via custom checkbox in WooCommerce product settings Explanation via comment tags added in the code To add a checkbox to the inventory product options, use: [php]// Add checkbox function action_woocommerce_product_options_inventory_product_data() { // Checkbox woocommerce_wp_checkbox( array( ‘id’ => ‘_prevent_add_to_cart_button’, // Required, it’s the meta_key for storing the value (is checked or … Read more