• Resolved Minhaz Irphan Mohamed

    (@minhazmohamed)


    Hi there,

    Is there anyway that I can hide the Vendor name in the customer invoice in the email and thank you page?

    Here is a screenshot of what I want to hide: https://prnt.sc/9eMTLuCG1Wee

    Any tips would be useful. I could edit the email template if required by creating a child theme. But is there a better way to handle this?

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello @minhazmohamed,

    I am sharing a Custom Snippet with you. This snippet effectively removes the vendor name from both the Email and Thank You pages. Kindly insert the Custom Snippet into your function.php file of the Child theme.

    remove_action( 'woocommerce_order_item_meta_start' , 'dokan_attach_vendor_name', 10, 2 );
    remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10, 2 );

    Kindly incorporate the provided custom Snippet into the specified location.

    I hope this information proves helpful.

    Cheers!

    Thread Starter Minhaz Irphan Mohamed

    (@minhazmohamed)

    Thanks a ton! I shall try this and keep you posted. In the meantime, is there a way to only remove the vendor name from emails sent to the customer and not the emails sent to the admins?

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @minhazmohamed

    You can indeed override the Dokan email template to customize it according to your specific requirements. For detailed instructions on how to do this, please refer to the following link:

    https://dokan.co/docs/wordpress/tutorials/customize-e-mail-template/

    I hope the information will help.

    Thanks!

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @minhazmohamed

    As we haven’t heard back from you for a while, we’ll consider this topic resolved. If you encounter any further issues, please don’t hesitate to open a new topic.

    Thanks!

    Thread Starter Minhaz Irphan Mohamed

    (@minhazmohamed)

    Hi @tanvirh,

    I apologize for not replying sooner, but I couldn’t find the email template that is being sent to the site admin’s email via WooCommerce. If we can include the Vendor information just for order notification email it’ll be enough.

    Is there any way that we can make this work?

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @minhazmohamed

    Dokan utilizes the WooCommerce email template “New order” to send order notifications to the admin. If you wish to include additional information, such as vendor details, in the email, it will require customization of this email template.

    To achieve this customization, we recommend consulting with a professional WordPress and WooCommerce customization expert. They will be able to assist you in modifying the email template to include the desired vendor information while ensuring compatibility with Dokan and WooCommerce.

    Thanks!

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi?@minhazmohamed

    As we haven’t heard back from you for a while, we’ll consider this topic resolved. If you encounter any further issues, please don’t hesitate to open a new topic.

    Thanks!

    I have the same issue but I am using Astra theme, How can I remove the Vendor Name

    • This reply was modified 6 months, 2 weeks ago by akringim.
    Thread Starter Minhaz Irphan Mohamed

    (@minhazmohamed)

    @akringim If you add the code snippets shared by @fayeakuzzaman onto your theme it will do the job, I am resharing the snippets again below for your convenience:

    remove_action( 'woocommerce_order_item_meta_start' , 'dokan_attach_vendor_name', 10, 2 );
    remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10, 2 );
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to remove vendor name on WooCommerce order invoice’ is closed to new replies.