Disable "Store Stats" in [Store Manager]

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Disable "Store Stats" in [Store Manager]

Viewing 11 reply threads
  • Author
    Posts
    • #64189
      christine
      Guest

      Hi,
      I want to disable “Store Stats” in [Store Manager] – [Home].
      I don’t want my vendors to see it.
      But it seems there is no option for disabling it in [Capability] settings.

      Could you give me a code for this?
      Thanks in advance!

    • #64864
      WCFM Forum
      Keymaster

      Hi,

      Please add this line to your site –

      add_filter( 'wcfm_is_pref_stats_box', '__return_false' );

      Thank You

    • #64926
      Christine
      Guest

      Thanks!
      I added this code using the Snippet plugin, but “Store Stats” still appears.

      Nothing seems wrong with this code, I don’t know why it is still showing 🙁

    • #65276
      WCFM Forum
      Keymaster

      HI,

      Which multi-vendor you are using ?

      Is there any caching plugin? If so, then please clear caches and check.

      Thank You

    • #66338
      ibcommunications91
      Participant

      The multi-vendor plugin I’m using in is “WooCommerce Multivendor Marketplace”!
      And I’m not using any caching plugin.

      Any further suggestions?

    • #66839
      WCFM Forum
      Keymaster

      What is your WC Frontend Manager plugin version?

      Do you have any template override?

      Thank You

    • #66904
      ibcommunications91
      Participant

      I was using Version 6.1.4,
      and I upgraded it to 6.1.5 today but it isn’t still working..

    • #67045
      WCFM Forum
      Keymaster

      Hi,

      May be I misunderstood your requirement.

      Can you please show me screenshot, what exactly you want to disable form vendor’s dashboard ?

      Thank You

    • #67109
      ibcommunications91
      Participant

      Please see the image i attached!
      I want to remove “Store Stats” appearing in <Home> menu of STORE MANAGER.

      Attachments:
      You must be logged in to view attached files.
    • #67123
      WCFM Forum
      Keymaster

      Ahh .. sorry, I though you want to hide this top stats boxes – https://ibb.co/FgZ2qRq

      Please use this snippet for the purpose –

      add_filter( 'wcfm_is_dashboard_more_stats', '__return_false' );

      Well, this will work after WCFM next update (6.1.7).

      Thank You

    • #72663
      vanilladev89
      Participant

      Hello

      I have a suggestion to make off the back of this thread. It could be a good idea to attach the filters for some capabilities to the capabilities. What I mean by this is take shipping for example. If the store admin disables shipping capability, there should not be any shipping stats in home page or options in the interface anymore and for some admins that use some shipping, maybe you make these options capability options as well. To Further my example, I noticed that in Store Policies, even though shipping is turned off, there is still section to write a shipping policy. Options like this should just be disabled if shipping is disabled per vendor capability.

      Just a thought.

      Thank You

    • #72761
      WCFM Forum
      Keymaster

      Hi,

      Well, there is no such “shipping” capability.

      There is only one capability related to shipping, but that is only for whether vendors allowed to setup shipping cost or not!

      Now, only depending upon this disable all shipping related information form vendor dashboard will not right.

      Thank You

Viewing 11 reply threads
  • You must be logged in to reply to this topic.