Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Membership category showing on shop page
- This topic has 1 reply, 2 voices, and was last updated 4 years, 9 months ago by
Sarmistha Chakraborty.
- AuthorPosts
- May 19, 2020 at 4:31 pm #133092
soyoungbaekenny
ParticipantHi there,
When I land on my shop page, it shows product categories and it also shows ‘Membership’ as a product category.
I remember that I had to create membership category for vendors purchasing memberships but is there any way not to show that on the shop page along with the other products? Thank you. (Pic inserted)Attachments:
You must be logged in to view attached files. - May 20, 2020 at 12:45 pm #133442
Sarmistha Chakraborty
MemberHello,
We assume the section you have marked in your shop page side bar, it was coming from WooCommerce “Product categories” widget. Please try this code in your theme’s functions.php –
add_filter( 'woocommerce_product_categories_widget_args', 'woo_product_cat_widget_args' ); function woo_product_cat_widget_args( $cat_args ) { $cat_args['exclude'] = array('15'); //replace 15 with your membership category id return $cat_args; }
Ref: https://www.themelocation.com/how-to-remove-a-certain-category-from-woocommerce-category-widget/
https://docs.woocommerce.com/document/exclude-a-category-from-the-shop-page/Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.