MultivendorX Pro
-
AuthorPosts
-
-
May 24, 2023 at 10:00 AM #192388Rishi ThakkerParticipant
I want to show specific selected categories that vendors can choose while uploading or updating products. How can I do that?
-
May 24, 2023 at 5:26 PM #192420NerdySupportExpert MoumitaKeymaster
Hi Rishi, thanks for the query.
By default vendor can select categories added by the admin. You just need to go to admin dashboard >> MultiVendorX >> Settings >> General , from here enable the Category Pyramid Guide option https://prnt.sc/c8wJ3B6I80z6
Once the admin enables this option from admin dashboard, the vendor will get the categories added by the admin before adding a new product from his dashboard https://prnt.sc/ydN8yBRQ91-P
But if you are looking for some specific flow, can you please explain that?
-
May 25, 2023 at 9:30 AM #192435Rishi ThakkerParticipant
I have many categories on my site but I don’t want to allow vendors can select some categories. Vendors can only select those categories that I can allow like (Ableton Vocal Preset Packs, CUBASE VOCAL PRESET PACKS, and Drum Kits) from this https://www.screenpresso.com/=WK6ng
-
May 25, 2023 at 3:22 PM #192443NerdySupportExpert MoumitaKeymaster
Hi, There is no such setting in MultiVendorX using which the admin can restrict some categories for the vendors.
But with the Marketplace Membership module you can create a membership plan for vendors under which you as an admin can select allowed categories for the vendor. That means if a vendor buys that membership plan he will only be able to add products under those allowed categories.You can go through our knowledgebase doc for details on the marketplace membership module https://multivendorx.com/docs/knowledgebase/marketplace-memberhsip/
But if you still want to add the restriction in mutivendorx, then you have to do custom code and add this restriction. -
May 25, 2023 at 5:21 PM #192447Rishi ThakkerParticipant
There is any filter or hook available in your plugin for the restriction category?
-
May 26, 2023 at 6:00 PM #192496MVX Support NinjaKeymaster
Hi,
Kindly add below code to your function.php to hide some categories from your vendor add product page.add_filter( 'mvx_vendor_product_classify_first_level_categories', 'mvx_vendor_product_classify_first_level_categories_backup'); function mvx_vendor_product_classify_first_level_categories_backup($cat_array) { $cat_array['exclude'] = array(15); // add categorie id here saparated by comma return $cat_array; }
CopyRegards,
-
May 29, 2023 at 10:58 AM #192424Rishi ThakkerParticipant
I have many categories on my site but I don’t want to allow vendors can select some categories https://www.screenpresso.com/=WK6ng
Vendors can only select those categories that I can allow like (Ableton Vocal Preset Packs, CUBASE VOCAL PRESET PACKS, and Drum Kits) from this https://www.screenpresso.com/=WK6ng -
May 29, 2023 at 10:58 AM #192549Rishi ThakkerParticipant
I added that code to my function.php file but it doesn’t work because the category from this [https://www.screenpresso.com/=WGE2e, https://www.screenpresso.com/=9x74f%5D function is displayed on the vendor dashboard and there is no mention of the filter you gave me to exclude categories for vendors.
-
May 29, 2023 at 10:58 AM #192551Rishi ThakkerParticipant
I added that code to my function.php file but it doesn’t work because the category from this [https://www.screenpresso.com/=WGE2e , https://www.screenpresso.com/=9x74f%5D function is displayed on the vendor dashboard and there is no mention of the filter you gave me to exclude categories for the vendor.
-
May 29, 2023 at 10:58 AM #192550Rishi ThakkerParticipant
I added that code to my function.php file but it doesn’t work because the category from this [https://www.screenpresso.com/=WGE2e, https://www.screenpresso.com/=9x74f%5D function is displayed on the vendor dashboard and there is no mention of the filter you gave me to exclude categories for the vendors.
-
May 29, 2023 at 10:58 AM #192548Rishi ThakkerParticipant
I added that code to my function.php file but it doesn’t work because the category from this [https://www.screenpresso.com/=WGE2e, https://www.screenpresso.com/=9x74f%5D function is displayed on the vendor dashboard and there is no mention of the filter you gave me to exclude categories.
-
May 29, 2023 at 10:58 AM #192547Rishi ThakkerParticipant
I added that code to my function.php file but it doesn’t work because the category from this [ https://www.screenpresso.com/=WGE2e, https://www.screenpresso.com/=9x74f ] function is displayed on the vendor dashboard and there is no mention of the filter you gave me to exclude categories.
-
May 29, 2023 at 4:33 PM #192601MVX Support NinjaKeymaster
Hi,
for edit product page add custom code using below filter –apply_filters( "mvx_get_product_terms_product_cat_query_args", array( 'taxonomy' => $taxonomy, 'hide_empty' => false, 'orderby' => 'name', 'parent' => 0, 'fields' => 'id=>name', ) );
CopyRegards,
-
May 29, 2023 at 4:47 PM #192602Rishi ThakkerParticipant
I want to show this product category those id’s are 301, 150 and 151.
how can I add that id to this filter? -
May 29, 2023 at 6:35 PM #192603MVX Support NinjaKeymaster
Hi,
Add below code and add your all cat id in the array separated by comma,add_filter( "mvx_get_product_terms_product_cat_query_args", 'mvx_get_product_terms_product_cat_query_args_callback'); function mvx_get_product_terms_product_cat_query_args_callback($args) { $args['include'] = array(15); //add all cat id here return $args; }
CopyCheckout the image – https://prnt.sc/5lcsYncyT5Kv (working in our end)
Regards, -
June 5, 2023 at 1:54 PM #192585Rishi ThakkerParticipant
I added that code to my function.php file but it doesn’t work because the category from this https://www.screenpresso.com/=WGE2e , https://www.screenpresso.com/=9x74f function is displayed on the vendor dashboard and there is no mention of the filter you gave me to exclude categories.
-
June 5, 2023 at 1:54 PM #192586Rishi ThakkerParticipant
I added that code to my function.php file but it doesn’t work because the category from this https://www.screenpresso.com/=WGE2e , https://www.screenpresso.com/=9x74f function is displayed on the vendor dashboard and there is no mention of the filter you gave me to exclude categories for the vendors.
-
September 20, 2023 at 4:20 PM #196468Sangita Support SquadKeymaster
Its been long and we have not heard back from you. Earlier we somehow missed your thread. Can you please let us know if your query is resolved or not.
-
November 20, 2023 at 10:03 AM #207703Sangita Support SquadKeymaster
We presume your query is solved now. We are closing this thread. If you need help or face issue in future please create a new support ticket.
-
-
AuthorPosts
The topic ‘Select specific categories for vendor’ is closed to new replies.