WCMp Core
Tagged: general, Inventory, Product Manager, Vendor Dashboard
-
AuthorPosts
-
-
July 25, 2021 at 11:47 PM #125408PicflickParticipant
Good day,
I would like to change the titles of the tab names within the Product Manager section of the Vendor Dashboard:- “General” to “Pricing”
- “Inventory” to “Stock management”
Please see attached image for exact location
Is this possible? Please assist with the custom code for functions.php or css code to edit them
Thank you in advance
Regards, PicFlick -
July 26, 2021 at 6:30 PM #125430MVX Support NinjaKeymaster
1.I would like to change the titles of the tab names within the Product Manager section of the Vendor Dashboard:
“General” to “Pricing”
“Inventory” to “Stock management”
Please see attached image for exact location
Is this possible? Please assist with the custom code for functions.php or css code to edit them
>>
Hello @Picflick , thanks for getting in touch with us. Our answers are inline with yours .
Using the loco plugin you can change the titles (Loco Translate – WordPress plugin | WordPress.org )
You can go through this documentation for better understanding.
https://multivendorx.com/knowledgebase/wcmp-translation-guide/2.We would like to remove (or disable) some sections of the ‘product management’ functionality available to our vendors. i.e. We do not need them or want them to be shown
Therefore, when they add products or edit products we do not want for the following sections to be showed.
Attributes tab
Product tags section
FB Product Sets section
>>> To remove attribute and tag add this code in the function.php of the current active theme :
add_filter(‘wcmp_product_data_tabs’, ‘callback_wcmp_product_data_tabs’, 99);
function callback_wcmp_product_data_tabs($tabs){
unset($tabs[‘attribute’]);
return $tabs;
}
add_filter(‘wcmp_vendor_can_add_product_tag’, ‘__return_false’);
Now fb product set doesn’t come from our plugin. In order to remove this we need access of your staging site. -
July 26, 2021 at 10:26 PM #125469PicflickParticipant
Thanks very much 🙂
The part to remove ‘attributes‘ worked.
However, the product tags did not – I had to add the following code to CSS.form#wcmp-edit-product-form .row .col-md-4 .panel.panel-default.pannel-outer-heading:nth-of-type(2) { display: none; }
CopyIs this the best fix?
Thanks, -
July 27, 2021 at 12:25 AM #125484PicflickParticipant
Thanks for the translation suggestion – however I dont wish to apply a whole new plugin, define languages, and add extra unnecessary bulk when I just want to change 2 words.
Is there no alternative option to simply change the name of those 2 tabs please?
Thanks -
July 27, 2021 at 6:20 PM #125527MVX Support NinjaKeymaster
Hi,
To change the tab name and hide the attribute tab kindly add the below code in the function.php of the current active theme :add_filter('wcmp_product_data_tabs', 'callback_wcmp_product_edit_page_data_tabs', 99); function callback_wcmp_product_edit_page_data_tabs($tabs){ $tabs['general']['label'] = 'Pricing'; $tabs['inventory']['label'] = 'Stock management'; unset($tabs['attribute']); //remove attribute tab return $tabs; }
Copyregards,
-
July 28, 2021 at 8:22 PM #125594PicflickParticipant
THANK YOU @abhirup – worked like a charm!! 🙂
@WCMp_Support_Ninja – awaiting your response please…? -
July 28, 2021 at 9:01 PM #125601MVX Support NinjaKeymaster
Picflick, if the css is working fine, then it is totally okay.
-
-
AuthorPosts
The topic ‘Change name of General and Inventory tabs in vendor dashboard – product manager’ is closed to new replies.