Okay
  Public Ticket #3607572
How do remove the price column from the purchase list download?
Closed

Comments

  •  1
    Mo started the conversation

    How do I prevent the prices for items to appear on the CSV file, when a user downloads a purchase list.

    Or

    Remove the option to download the list all together.

  •  1,881
    WebWizards replied

    Hi Mo,

    It is possible to remove the Price column, by adding the following PHP code snippet to your site:

    add_filter('b2bking_list_download_columns_header', function($header){
        unset($header[3]);
        return $header;
    }, 10, 1);
    add_filter('b2bking_list_download_columns_items', function($columns, $item){
        unset($columns[3]);
        return $columns;
    }, 10, 2);
    

    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