Banner Logo

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

How to remove link to billing page from vendor dashboard

Theme and Plugin Support

Resolved
Viewing 18 reply threads
  • Author
    Posts
    • #142736
      arturvirabyan15
      Participant

      how to disable billing for sellers, since they will receive the money in cash when the courier takes the goods, You can answer here or you need to make a new topic?, I was given this code on the WordPress forum, but it did not solve the problem

      add_filter(‘wcmp_vendor_dashboard_nav’, ‘callback_wcmp_vendor_dashboard_nav’, 99);
      function callback_wcmp_vendor_dashboard_nav($vendor_nav){
      unset($vendor_nav[‘vendor-payments’]); // for payments
      return $vendor_nav;
      }

    • #142744

      Hi @arturvirabyan15, not to worry.

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

    • #142749
      arturvirabyan15
      Participant
      This reply has been marked as private.
    • #142777
      This reply has been marked as private.
    • #142778
      arturvirabyan15
      Participant

      Well, it works, but I also need to disable Payments completely, I will personally pay the sellers in cash, so there’s no need for payments settings anywhere, well, it can stay in the admin panel, it doesn’t interfere, but on the Dashboard and on the first store settings you need to disable , there is also a progress bar that shows how many percent are left until the full store settings, Payments method and from there you need to disable

    • #142779
      arturvirabyan15
      Participant

      and is it possible to somehow make the seller registration page two languages ?, so that it would be possible to make translations through Loco Translate or through PolyLang

    • #142780

      I have updated the code to remove payment too.

      Regarding the language, I am afraid we don’t have any such settings. For this you need plugin like WPML.

    • #142781
      arturvirabyan15
      Participant

      Polylang is very similar to WPML, but it cannot find these lines specifically if you could add them there, but it would be repainted.
      It looks like Payments has not disappeared, here is the screen – https://postimg.cc/xJqSNsc7

    • #142782
      arturvirabyan15
      Participant

      And here too I also did not disappear – https://postimg.cc/bGBBWqwC

    • #142810

      Hi, as you can see here, we have the support for those strings https://fluvid.com/videos/detail/wzD1ysPeMLTm-EOEX?loading=wzD1ysPeMLTm-EOEX

      Does polylang has any such settings to sync the strings again?

    • #142812
      arturvirabyan15
      Participant

      If you add pll__ or pll_e to the line, then PolyLang can immediately find this line, at least you can add this code to function.php, and then 100% PolyLang will find the line, for example, we need to translate the words Heloo world, then you need to do this, to line add pll_e (<?php pll_e(‘Hello world’); ?>) and in functions.php write this code (add_action(‘init’, function() {
      pll_register_string(‘mytheme-hello’, ‘Hello world’);
      });), and it also works with the wpml-config.xml file, so you can add a line like in WPML and it will work,
      Documentation: https://polylang.wordpress.com/documentation/setting-up-a-wordpress-multilingual-site-with-polylang/strings-translation/

    • #142813
      arturvirabyan15
      Participant

      I can’t seem to download your video, can you send it in another way?

    • #142814
      arturvirabyan15
      Participant

      PolyLang can find all lines in your plugin except for these lines in question

    • #142815
      arturvirabyan15
      Participant

      Payments has already been removed from the vendor menu, there was an error in the code, the developer changed the brackets, I fixed it and it disappeared, But in the progress bar it remains, and from there it is impossible to remove, https://postimg.cc/bGBBWqwC

    • #142833

      Hi, for this add this code :

      add_filter( 'wcmp_vendor_profile_completion_progress_fields' , 'progress_fields_function', 10, 2 );
      function progress_fields_function( $progress_fields, $vendor_id ) {
      unset($progress_fields['_vendor_added_product']);
      return $progress_fields;
      }
      Copy
    • #142838
      arturvirabyan15
      Participant

      This code did not solve my problem, the payment method remained in the progress bar (visible in the screenshot)

    • #142869

      Our team will check this. Kindly provide them some time.

    • #142889

      Hi,
      Kindly Remove previous code and add below code to your active theme function.php

      add_filter( 'wcmp_vendor_profile_completion_progress_fields' , 'progress_fields_function', 10, 2 );
      function progress_fields_function( $progress_fields, $vendor_id ) {
      unset($progress_fields['_vendor_payment_mode']);
      return $progress_fields;
      }
      Copy

      Regards,

    • #142890
      arturvirabyan15
      Participant

      okey, thank

Viewing 18 reply threads

The topic ‘How to remove link to billing page from vendor dashboard’ is closed to new replies.