• Resolved alexliii

    (@alexliii)


    Hello,

    We are using the following code to remove vendor name in order email:

    remove_action( 'woocommerce_order_item_meta_start', 'dokan_attach_vendor_name', 10 );

    I just did a sandbox test, and I noted that the vendor Name is still in the order email, and please check the screenshot:

    https://prnt.sc/9qv3f12Tfmhu

    By the way, we mock vender as supplier.

    Could you please have a check and update the code snippets?

    Thanks

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

    (@jahidulhassan)

    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!

    Thread Starter alexliii

    (@alexliii)

    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

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @alexliii,

    Please add remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10, 2 ); this code too.

    Thread Starter alexliii

    (@alexliii)

    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.
    Plugin Support Md Fayeakuzzaman

    (@fayeakuzzaman)

    Hello @alexii,

    At this moment such feature is unavailable. You can report an enhancement request by visiting this link.

    Thanks!

    Thread Starter alexliii

    (@alexliii)

    Hello,

    https://prnt.sc/KYbmO7y-bK_C

    Registration is currently limited to invitations only. Please contact your administrator for an invitation.

    Thanks

    Thread Starter alexliii

    (@alexliii)

    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

    Plugin Support Md Fayeakuzzaman

    (@fayeakuzzaman)

    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!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Code snippet does not work’ is closed to new replies.