Hi @alexliii,
Try remove_action( 'woocommerce_order_item_meta_start' , 'dokan_attach_vendor_name', 10, 2 ); this one and I hope it will help. Please share your feedback on how did it go.
Thanks!
Hello,
I used you code:
remove_action( 'woocommerce_order_item_meta_start' , 'dokan_attach_vendor_name', 10, 2 );
Please check the screenshot:
https://prnt.sc/7VPhQf5zGgu9
Then, I did a sandbox test, here is the order email, please note that we mock vendor as supplier by the local translate:
https://prnt.sc/XUhEXXyQ0Pno
Could you please update the code?
Thanks
Hi @alexliii,
Please add remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10, 2 ); this code too.
Thanks, and I will have a test.
By the way, can you please support to remove the vendor name in order email by native option in Dokan setting?
You know, Dokan is alway updating the version, and that might cause potential issue.
Thanks
-
This reply was modified 2 years, 3 months ago by
alexliii.
Hello @alexii,
At this moment such feature is unavailable. You can report an enhancement request by visiting this link.
Thanks!
Hello,
https://prnt.sc/KYbmO7y-bK_C
Registration is currently limited to invitations only. Please contact your administrator for an invitation.
Thanks
Hello,
Do you mean I should try these four code lines? if Yes, it does not work.
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 );
or should I try only this line?
remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10, 2 );
By the way, should it be run in “Only run in administration area” or ” Only run on site front-end”? or “Run snippet everywhere”, please check the screenshot to understand what I mean:
https://prnt.sc/bz_qN-95I7Uw
Thanks
Hello @alexliii,
To remove the vendor name from the order email, please implement the following code snippet.
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 );
The code snippet should be run everywhere on the site. To get a visual idea, please check the reference here: https://snipboard.io/QCXbvm.jpg
Thanks!
Hi @alexliii
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!