Okay
  Public Ticket #3270874
Vendor Information
Closed

Comments

  • Joel Nnamdi Abarra started the conversation

    Is it possible to hide vendor information generally from customers? How can it be done? Is there a documentation?

  •  2,218
    WebWizards replied

    Hello Joel,

    Thank you for getting in touch,


    Do you mean that you would like to hide who is the vendor of a product? 


    It can be done with some code snippets.

    You can add the following PHP code snippet to your site:

    add_filter('marketking_show_vendor_product_page','__return_false');
    global $marketking_public;
    remove_filter( 'woocommerce_get_item_data', [$marketking_public,'marketking_show_vendor_cart'], 10, 2 );
    

    A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/


    Kind regards,

    Stefan


  • Joel Nnamdi Abarra replied

    Does this hide the vendor information globally in places like the cart, customer's order page etc? This is what I actually need.

  •  2,218
    WebWizards replied

    That should hide the vendor on the cart page and on the product page.


    Actually you can replace the snippet with this:

    add_filter('marketking_show_vendor_product_page','__return_false');
    global $marketking_public;
    remove_filter( 'woocommerce_get_item_data', [$marketking_public,'marketking_show_vendor_cart'], 10, 2 );
    remove_filter( 'woocommerce_my_account_my_orders_columns', array($marketking_public, 'marketking_orders_vendor_column') );
    remove_action( 'woocommerce_my_account_my_orders_column_order-vendor', array($marketking_public, 'marketking_orders_vendor_content')  );
    

    This will also remove the vendor column on the My Account -> Orders page.


    If you see the vendor anywhere else, let us know and we can assist to hide or remove that.


  • Joel Nnamdi Abarra replied

    The vendor information still shows on the cart and orders page. How do I get rid of it?

  •  2,218
    WebWizards replied

    Hi there,

    Can you please share a screenshot of that (cart page), so we can better understand the situation?

    Are you using only MarketKing Core, or also using our MarketKing Pro plugin?


    Kind regards,

    Stefan

  • Joel Nnamdi Abarra replied

    I'm using the Marketking core and pro plugin.

    The Vendor information shows on the cart, Orders page and the Mini Cart.

    I think this solution should also be added to your next update. It's very important.

  • Joel Nnamdi Abarra replied

    Here are the screen shots.

    Attached files:  Web capture_15-8-2023_6585.jpeg
      Web capture_15-8-2023_8267_.jpeg

  •  2,218
    WebWizards replied

    Thank you for clarifying,

    We would like to assist you to resolve this,


    Since you are using MarketKing Pro, kindly please provide us with your license key for the pro plugin as we need to add that to our database:

    - If you purchased on KingsPlugins.com - Where is my KingsPlugins license key? 

    - If you purchased on CodeCanyon (Envato/ThemeForest): Where is my Envato purchase code?


    Kind regards,

    Stefan