Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Sync wcfm marketplace user image avatar and logo with Listify on listing card
Tagged: avatar, Listify, logo, user image
- This topic has 9 replies, 4 voices, and was last updated 4 years, 6 months ago by Henriette.
- AuthorPosts
- December 20, 2019 at 2:14 am #98099jl.loParticipant
Hi
What can i do to sync the user image avatar and the company logo that i have added on wcfm marketplace with the listing cards on Listify theme??
See screenshots please.
https://ibb.co/cF06s93
https://ibb.co/qjNMH0m
I hope someone can help me.Thanks in advance.
- December 20, 2019 at 2:17 am #98105jl.loParticipant
I couldn´t add the second screenshot on the previous massage.
I add here the listing card with the user image that, as you can see, is not the one i have set on the wcfm market place user profile and company logo.Thanks
- December 23, 2019 at 10:27 am #98622WCFM ForumMember
HI,
Please add user’s profile image from WCFM Dashboard Profile – https://ibb.co/gDwbZG3
If you want to sync vendor’s store logo and profile image then add this code to your site –
add_action( 'wcfm_profile_update', function( $vendor_id, $wcfm_profile_form ) { global $WCFM, $wpdb, $_POST, $blog_id; $description = wcfm_get_user_meta( $vendor_id, 'description', true ); wcfm_update_user_meta( $vendor_id, '_store_description', $description ); if(isset($wcfm_profile_form['wp_user_avatar']) && !empty($wcfm_profile_form['wp_user_avatar'])) { $vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true ); $vendor_data['gravatar'] = $WCFM->wcfm_get_attachment_id( $wcfm_profile_form['wp_user_avatar'] ); update_user_meta( $vendor_id, 'wcfmmp_profile_settings', $vendor_data ); } }, 50, 2 ); add_action( 'wcfm_vendor_settings_update', function( $vendor_id, $wcfm_settings_form ) { global $WCFM, $wpdb, $_POST, $blog_id; $description = wcfm_get_user_meta( $vendor_id, '_store_description', true ); wcfm_update_user_meta( $vendor_id, 'description', $description ); if(isset($wcfm_settings_form['gravatar']) && !empty($wcfm_settings_form['gravatar'])) { $wp_user_avatar = $wcfm_settings_form['gravatar']; // Remove old attachment postmeta delete_metadata( 'post', null, '_wp_attachment_wp_user_avatar', $vendor_id, true ); // Create new attachment postmeta add_post_meta( $wp_user_avatar, '_wp_attachment_wp_user_avatar', $vendor_id ); // Update usermeta update_user_meta( $vendor_id, $wpdb->get_blog_prefix($blog_id).'user_avatar', $wp_user_avatar ); } }, 50, 2 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- December 23, 2019 at 5:14 pm #98704jl.loParticipant
Hi
Thank you very much for your response, but I’m afraid that is not exactly what I need.
Actually, what I need is to synchronize between the WCFM, Listify and WP Job Manager, both the description and the avatar of the user profile, the company logo, the stars, the reviews, hours of work, etc. (all information). That way when I show my listings using [Jobs] https://ibb.co/2362Vmf https://ibb.co/tLYsgXZ (not your listings stores) in listings cards with [jobs] and their widgets, the same information that is configured in WCFM appears https://ibb.co/GWpfH57.
It is very annoying for vendors to have to add twice their profile / avatar image, twice the company logo, have their client write reviews twice (once in the listing (Listify and WP Job Manager) and once in the vendor store)Thank you
- December 23, 2019 at 9:36 pm #98778jl.loParticipant
I forgot to tell you that on listing cards must appears the listing name as Listify theme is set.
Thanks
- April 25, 2020 at 8:04 pm #122955pisidiaParticipant
Hi!
So the VENDOR AVATAR which is in the Vendor Dashboard-Profile section, is not saved to the default WordPress PROFILE PICTURE. I do see, however, that the information in the Vendor ABOUT box in the same Vendor Dashboard profile section, is saved to the default WordPress “Biographical Info” section.
The issue I am having is that my website blog takes user data which it displays in blogs and in any Comments or Replies, from the default WP Profile Picture and Biographical Info sections. So now it shows the info in the Vendor’s Profile “ABOUT” section, but no Vendor photo.
My questions:
1. Why is the Vendor Avatar in Dashboard Profile section not saved to default WP Profile Picture?
2. How can I get the Vendor Avatar in Profile section, to be saved to the default WP Profile Picture? (Is this not advisable?)
3. What is the best way to get the Vendor Avatar in Dashboard Profile section to show up in blogs, replies, comments, etc?Many Thanks
- May 4, 2020 at 4:13 pm #126454HenrietteParticipant
I would like to know this too.
I have a forum for my vendors so I thought their profile picture would show up in the forum as well.
Otherwise what is the purpose of the profile picture? - May 4, 2020 at 4:22 pm #126458HenrietteParticipant
Never mind.
If found it here: https://wclovers.com/forums/topic/including-vendor-owner-avatar-profile-pic-in-vendors-store/Works like a charm!
- May 4, 2020 at 6:31 pm #126527pisidiaParticipant
@Henriette, THANK YOU!! The plugin does exactly what I needed too!
- May 4, 2020 at 6:38 pm #126530HenrietteParticipant
You’re welcome 🙂
- AuthorPosts
- You must be logged in to reply to this topic.