Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Groups & Staffs › vendors/users can't upload product images
- This topic has 19 replies, 2 voices, and was last updated 6 years, 11 months ago by WCFM Forum.
- AuthorPosts
- January 16, 2018 at 8:26 am #17985info17Participant
hi again:)
i testing now and i see that my vendors/users cant upload images for product..
i set this feature “on” in main settings and group settings but when i try to upload a image for product as vendor it says i have no permission to upload photo..
i disable groups etc and test again, and i check all fields and users have permission but is not working.. when i login as admin its ok i can upload. - January 16, 2018 at 8:29 am #17987WCFM ForumMember
Hi,
It’s nothing but capability issue.
Do you have any plugin like user role editor?Thank You
- January 16, 2018 at 8:45 am #17988info17Participant
hi again, no i have no user role plugin.
i allowed upload in group, and in Capability Settings “wcfm-capability” but cant upload.
if you like i can send u a login to test. - January 16, 2018 at 8:54 am #17989
- January 17, 2018 at 5:59 am #18013WCFM ForumMember
Be sure this is a capability issue.
Are you getting any error when uploading image/media? - January 17, 2018 at 7:23 am #18019
- January 17, 2018 at 9:53 am #18032WCFM ForumMember
Hi,
Hope you are getting this error only as Vendor and not as Admin.
Can you please take a try from wp-admin panel for a vendor user and know me are you getting same error or not!
Thank You
- January 17, 2018 at 10:06 am #18033info17Participant
hi again:)
yes as admin i have no problems, front and backend ๐
and yes if i go to backend as vendor i can add photo to product, and when i go back to frontend i get the “no permission” when try to uplad a photo
hope this helps for you. - January 17, 2018 at 11:03 am #18035WCFM ForumMember
Hi,
Opps!! If they able to upload from back-end then it’s not capability issue.
Just one more clarification, is your vendors has more than one user role? e.g vendor and subscriber
Thank You
- January 17, 2018 at 12:14 pm #18037WCFM ForumMember
Hi,
Do you have “WP User Avatar” plugin installed?
I just found this – https://www.wcvendors.com/help/topic/error-in-uploading-image-not-allowed/
Thank You
- January 17, 2018 at 12:24 pm #18038WCFM ForumMember
Hi,
Can you please add this code and know me is this resolve your issue or not!
function allow_vendors_media_uploads() {
$vendor_role = get_role(‘seller’);// Ensure Vendors Media Upload Capability
$vendor_role->add_cap(‘edit_posts’);
$vendor_role->add_cap(‘edit_post’);
$vendor_role->add_cap(‘edit_others_posts’);
$vendor_role->add_cap(‘edit_others_pages’);
$vendor_role->add_cap(‘edit_published_posts’);
$vendor_role->add_cap(‘edit_published_pages’);
$vendor_role->add_cap( ‘upload_files’ );
}
add_action( ‘init’, ‘allow_vendors_media_uploads’ );I am also not 100% sure with this but if it works then will add this in WCFM next update.
Please know me is this works for you or not!
Thank You
- January 17, 2018 at 12:35 pm #18039info17Participant
hi again, yes i use โWP User Avatarโ
i test your code in functions.php but still not working the upload for vendors.
thanks anyway.. - January 17, 2018 at 12:38 pm #18040WCFM ForumMember
Hi,
Can you please disable “WP User Avatar” once and take a look.
Thank You
- January 17, 2018 at 12:48 pm #18041info17Participant
yep, you are right.. if i disable โWP User Avatarโ its working perfect and vendor can upload images..
hope this helps. lot of people using plugin.
thank you - January 17, 2018 at 3:04 pm #18046WCFM ForumMember
Ahhh … that will be really helpful for everyone as “WP User Avatar” is a quite popular plugin.
Let me now looking for the reason behind this and if there is any possible solution.
I will update you soon on this.
Thanks for your cooperation.
- January 17, 2018 at 3:09 pm #18047info17Participant
nice, no stress on this for me.. if you fix in future update is nice ๐
( is not your fault this issue) ๐ - January 19, 2018 at 6:36 am #18093WCFM ForumMember
Hi,
WCFM new version has just released, kindly update yours and take a look.
Please “Save” WCFM capability once before test.
Please know me is this resolved for you or not!
Thank You
- January 19, 2018 at 6:39 am #18094info17Participant
good morning, i will test in few minutes. thank you ๐
- January 19, 2018 at 6:45 am #18096info17Participant
nice, working perfect now..your the men !!!! ๐ thanks a lot for your effort
- January 19, 2018 at 10:43 am #18110WCFM ForumMember
Woow!! Welcome ๐
That’t really cool. A big issue finally resolved and we have no idea of this ever!
- AuthorPosts
- The topic ‘vendors/users can't upload product images’ is closed to new replies.