Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @shadmanalvy

    From your statement, I understood that you want to remove some columns from the CSV that the vendors can export about their orders. You can use dokan_csv_export_headers this filter hook to do so. You can see a sample code by visiting this gist.

    I hope this will help. Thanks!

    Thread Starter shadmanalvy

    (@shadmanalvy)

    Hi @jahidulhassan

    Your understanding is correct…I have applied the following code at wp-content/plugins/dokan-master/includes/functions.php but the exported csv still contains the headers that i am trying to remove in the below code

    <? php
    
    function dokan_order_export_headers($headers){ 
        unset($headers['billing_company']);
        unset($headers['billing_first_name']);
        unset($headers['billing_last_name']);
        unset($headers['billing_email']);
        unset($headers['billing_phone']);
        unset($headers['customer_ip']);
        unset($headers['billing_full_name']);
        unset($headers['billing_address_1']);
        unset($headers['billing_address_2']);
        unset($headers['billing_city']);
        unset($headers['billing_state']);
        unset($headers['billing_postcode']);
        unset($headers['billing_country']);
    
        unset($headers['shipping_company']);
        unset($headers['shipping_first_name']);
        unset($headers['shipping_last_name']);
        unset($headers['shipping_email']);
        unset($headers['shipping_phone']);
        unset($headers['shipping_full_name']);
        unset($headers['shipping_address_1']);
        unset($headers['shipping_address_2']);
        unset($headers['shipping_city']);
        unset($headers['shipping_state']);
        unset($headers['shipping_postcode']);
        unset($headers['shipping_country']);
    
        return $headers; 
    } 
    add_filter('dokan_csv_export_headers', 'dokan_order_export_headers');
    ?>
    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @shadmanalvy

    I have applied the exact same code as you have provided above and found https://snipboard.io/zvP21m.jpg this output. It is working on my site. Kindly check if the code was placed properly and the child theme is activated.

    Thanks.

    Thread Starter shadmanalvy

    (@shadmanalvy)

    Hi @jahidulhassan

    Thank you for your assistance…i placed the code in the wp-content/plugins/dokan-master/includes/functions.php directory earlier…however when i placed that in the child theme’s function.php file, it is working fine now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where do I find dokan_get_product_attributes_by_order.php file?’ is closed to new replies.