Banner Logo

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

Policies Tab submenu Dashboard & Vendor Frontend

WCMp Advanced Frontend Manager

Tagged: 

Resolved
Viewing 9 reply threads
  • Author
    Posts
    • #135356
      Klaus Thomas Russ
      Participant

      Dear all,

      I want to remove the ‘policies tab’ in the vendor dashboard submenu (storefront) and also in the frontend of the vendor’s page.

      If I unset ‘Enable this to let vendor add policies and display at Vendor’s shop page’ in WCMP’s settings, the policies tab of the product is also being removed. But what I want is that vendors can add policies for each product, but not for their shop.

      Do you have any snippet, that I can add to the functions.php?

      Best regards and thanks in advance.

    • #135367

      Hi, you can remove the “policy” tab from vendor dashboard by adding this code in the function.php of the theme :

      add_filter('wcmp_vendor_dashboard_nav', 'callback_wcmp_vendor_dashboard_nav', 99);
      function callback_wcmp_vendor_dashboard_nav($vendor_nav){
          
         unset($vendor_nav['store-settings']['submenu']['vendor-policies']);
       
         return $vendor_nav;
      }
      Copy
    • #135397
      Klaus Thomas Russ
      Participant

      Dear Nerdy,

      adding this code to the function.php generates a critical problem and the website isn’t attainable any more.

      What could the problem be?

      Best regards!

    • #135431

      Not an issue. I checked this code on our end, didn’t face any issue.

      Please do share a temporary admin, FTP access so we can check.
      While sharing the access don’t forget to mark the response as private.

    • #135488
      Klaus Thomas Russ
      Participant
      This reply has been marked as private.
    • #135506
      This reply has been marked as private.
    • #135509
      Klaus Thomas Russ
      Participant
      This reply has been marked as private.
    • #135551
      This reply has been marked as private.
    • #135625
      Klaus Thomas Russ
      Participant
      This reply has been marked as private.
    • #135636
      This reply has been marked as private.
Viewing 9 reply threads

The topic ‘Policies Tab submenu Dashboard & Vendor Frontend’ is closed to new replies.