Okay
  Public Ticket #2912064
Change Purchase List Default prefix
Closed

Comments

  •  2
    Ryan started the conversation

    Hello, when exporting a purchase list, it has 'b2bking' as the prefix of the file name / table title.  How can we rename to be client store name? 

    For example 'nacsmart.com_purchase_list_19788.csv' rather than the title of the generated one attached.

    Thank you.

  •  2,218
    WebWizards replied

    Hi Ryan,

    Yes, you can do this by adding the following PHP snippet to your site:

    add_filter('b2bking_purchase_list_file_name', function($name){
        $name = 'nacsmart.com_purchase_list';
        return $name;
    }, 10, 1);
    

    You can add this code to functions.php, or by following the guide here:

    https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/


    Kind regards,

    Stefan


  •  2
    Ryan replied

    Awesome - works great - thank you.