Okay
  Public Ticket #3644486
Enable/ disable "order again" feature in settings
Closed

Comments

  •  14
    Sergio started the conversation

    Hello,

    It'd be great if we can disable "Order again" button in b2bking settings.

    we're using another plugin for it.


    regards,

    Sergio

  •  2,214
    WebWizards replied

    Hello Sergio,

    I believe you can disable that by adding the following PHP code snippet to your site:

    add_filter('woocommerce_valid_order_statuses_for_order_again', function($array){
        return array('disabled');
    }, 10, 1);
    

    This snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/


    Kind regards,

    Stefan

  •  14
    Sergio replied

    Thank you!