Public Ticket #3607572

How do remove the price column from the purchase list download?

Closed
Comments
3 Tickets 1
Mo started the conversation 3 years ago on March 15, 2024 at 7:30pm

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.

2,762
KingsPlugins replied 3 years ago on March 16, 2024 at 6:08am

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://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

Kind regards,

Stefan

Sign In