Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Disable "Store Stats" in [Store Manager]
- This topic has 11 replies, 4 voices, and was last updated 5 years, 6 months ago by WCFM Forum.
- AuthorPosts
- May 29, 2019 at 1:16 am #64189christineGuest
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! - May 29, 2019 at 7:32 pm #64864WCFM ForumMember
Hi,
Please add this line to your site –
add_filter( 'wcfm_is_pref_stats_box', '__return_false' );
Thank You
- May 30, 2019 at 4:40 am #64926ChristineGuest
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 🙁
- May 31, 2019 at 8:02 pm #65276WCFM ForumMember
HI,
Which multi-vendor you are using ?
Is there any caching plugin? If so, then please clear caches and check.
Thank You
- June 7, 2019 at 2:28 am #66338ibcommunications91Participant
The multi-vendor plugin I’m using in is “WooCommerce Multivendor Marketplace”!
And I’m not using any caching plugin.Any further suggestions?
- June 10, 2019 at 8:49 pm #66839WCFM ForumMember
What is your WC Frontend Manager plugin version?
Do you have any template override?
Thank You
- June 11, 2019 at 3:44 am #66904ibcommunications91Participant
I was using Version 6.1.4,
and I upgraded it to 6.1.5 today but it isn’t still working.. - June 11, 2019 at 5:47 pm #67045WCFM ForumMember
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
- June 12, 2019 at 2:00 am #67109ibcommunications91Participant
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. - June 12, 2019 at 5:49 am #67123WCFM ForumMember
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
- July 16, 2019 at 2:45 pm #72663vanilladev89Participant
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
- July 17, 2019 at 6:04 am #72761WCFM ForumMember
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
- AuthorPosts
- You must be logged in to reply to this topic.