Public Ticket #3270874

Vendor Information

Closed
Comments
1 Ticket
Joel Nnamdi Abarra started the conversation 4 years ago on March 9, 2023 at 11:04am

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

2,762
KingsPlugins replied 4 years ago on March 9, 2023 at 12:18pm

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://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

Kind regards,

Stefan

1
1 Ticket
Joel Nnamdi Abarra replied 4 years ago on March 9, 2023 at 4:11pm

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

2,762
KingsPlugins replied 4 years ago on March 9, 2023 at 4:30pm

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.


1
2,762
KingsPlugins replied 3 years ago on August 14, 2023 at 8:31pm

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

1 Ticket
Joel Nnamdi Abarra replied 3 years ago on August 15, 2023 at 6:03am

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.

Sign In