• Resolved ZaacWilliam

    (@omo9jatoja)


    I’m using dokan lite i need help removing vendor’s name or seller name on cart and checkout order details page.

    And i will also love to display seller name and link to seller’s profile in admin view orders.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thanks for your interest in Dokan.

    Removing vendor’s name from cart and checkout page can be achieved with this filter:
    remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10 );

    To show vendor name and link, you can echo these functions:
    Get the name – dokan()->vendor->get( $author_id )->get_shop_name()
    Get the URL – dokan()->vendor->get( $author_id )->get_shop_url()

    You need use these functions with the right hook depending exactly where you want to place them. You are free to use all the WooCommerce supported hooks ??

    great , run into the same problem .
    where should this code be posted ?

    Hello @greatiwhales,

    I think you are having a misunderstanding. There is no specific code mentioned in the above reply. Those are the mention of the filter and function that can help you with the modification you may need.

    You will need to use those functions with the right hook depending exactly where you want to place them. You are free to use all the WooCommerce supported hooks

    In case you are not familiar with coding, it will be better to get an expert opinion on the matter.

    Thanks ??

    Thread Starter ZaacWilliam

    (@omo9jatoja)

    Works perfectly, but still displays vendor’s name with link on ORDER DETAILS AFTER PAYMENT IS MADE.. KINDLY SEND ME A WAY TO GET THAT REMOVED TOO

    Hello,

    To remove the vendor details from the order details page you need to use this code in your theme’s functions.php file –

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

    Also to remove the vendor’s sub order details from the order details page you can use –
    remove_action( 'woocommerce_order_details_after_order_table', 'dokan_order_show_suborders' );

    Thank you.

    remove vendor information on cart page in dokan theme in woocommerce

    • This reply was modified 5 years, 4 months ago by up32.

    Hello can you please advise where the filter code should be placed?

    remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10 );

    Does this fix work for mini cart as well?

    Thanks!

    Hello @vitaeater ,

    You should place this file in your theme’s functions.php file. Yes it should work for your mini-cart as well.

    Thank you.

    roshni07

    (@roshni07)

    Hello @zahidiqbal,

    You will need to modify the code to achieve the requirement.
    File location: dokan-lite/includes/wc-template.php
    hook name: woocommerce_order_item_meta_start

    You can modify using the information. However, if you remove the information from email, it will also be hidden from the order confirmation: https://prnt.sc/rbsweg

    I hope the information helps ??

    Hello,
    I am using dokan lite, How do i remove customer informations like email and phone number from order email sent to vendor. This is really a great challenge for me here because it will be unfair for vendors to have customers informations because they will contact the customer directly and bypass our online shop.

    I hopefully wait for your response on this so that i will solve this problem.

    Regards,
    Elvis

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to remove dokan vendor info or seller name on cart and checkout page’ is closed to new replies.