Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Change name of General and Inventory tabs in vendor dashboard – product manager

WCMp Core

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #125408
      Picflick
      Participant

      Good day,
      I would like to change the titles of the tab names within the Product Manager section of the Vendor Dashboard:

      1. “General” to “Pricing”
      2. “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

    • #125430

      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.

    • #125469
      Picflick
      Participant

      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;
      }
      Copy

      Is this the best fix?
      Thanks,

    • #125484
      Picflick
      Participant

      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

    • #125527

      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;
      }
      Copy

      regards,

    • #125594
      Picflick
      Participant

      THANK YOU @abhirup – worked like a charm!! 🙂


      @WCMp_Support_Ninja
      – awaiting your response please…?

    • #125601

      Picflick, if the css is working fine, then it is totally okay.

Viewing 6 reply threads

The topic ‘Change name of General and Inventory tabs in vendor dashboard – product manager’ is closed to new replies.