Home Forums WC Vendors Free Support Having Additional Vendor Details & Info in sidebar

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 31 posts - 1 through 31 (of 31 total)
  • Author
    Posts
  • #6481
    katie eldridge
    Participant

    Hi,

    I’m sorry if this has already been answered else where. I was wondering if there was a way to integrate more vendor details other than in the Shop/Vendor details text areas.

    Ideally I’d like to add to this Shop Settings where a form can be setup to provide:

    Contact form to vendor
    Email
    Website
    Social Media links and icon

    Then have this information transferable to a sidebar on the Shop’s Profile page. I hope that makes sense. I’d like this option over having the vendor place in all their details separately in the Text area and have each shop look different…also having them know how to input basic html to have these kind of things show up once published. So more like a form to fill out…then have that input to a widget that will specify per shop/vendor page.

    Is this at all possible or something that will be integrated more for the Pro Version.

    Also I’m looking to purchase WooCommerce Frontend Shop Manager Pro Version. Do you recommend me holding off on this and will it conflict with the Pro Version of WC Vendor or will pro version cover where this plugin will not be needed later on?

    Thanks so much for your time!

    Kind Regards,

    Katie

    #6483
    WC Vendors Support
    Participant

    Hi Katie,

    The Frontend Shop Manager Pro plugin is completely different from WC Vendors Pro. It’s more of a “while browsing the site, you can edit a product with a weird side nav menu” plugin. It works, it does its job, and is compatible. WC Vendors Pro will maintain the Vendor Dashboard and have a front-end product adder/editor unique for each vendor. The price is right, it’s certainly not expensive. 😉 We fully expect WC Vendors Pro to replace needing it, while you could in theory run both it’d just be unnecessary. Plus of course ours will have a wealth of vendor specific features like feedback and ratings, and more.

    So, now on to the question of how to add more “stuff” to the shop pages. On the KnowledgeBase is an article on editing templates. The file you want to edit is /front/vendor-main-header.php. Read the KB article to copy it to your theme folder. And for this file, you need to wp-admin->woocommerce->wcvendors->Enable Shop Headers (checked) for it to load. In there, you can do anything you want to display whatever you want.

    Next, search this forum for “Custom Fields” and you’ll see some threads on how to add custom fields to the Shop Settings pages. In summary, you’d edit the shop settings page from the templates and add new fields, then call those fields you just added in vendor-main-header.php that you copied earlier.

    I understand this isnt a full “walkthough”, it’s just a hell of a lot of steps and unique to your site not all sites, so give it a whirl and see what you can come up with.

    And of course, in WCV Pro there will be a lot easier customization for stores that will make this process a heck of a lot simpler.

    #6484
    WC Vendors Support
    Participant

    This might also help, a little code snippet used on another site:

    https://gist.github.com/bentasm1/88225fd5d382a925e62c

    #6486
    WC Vendors Support
    Participant

    Hi Katie,

    There’s about 5000 sites that use WC Vendors as is, so I don’t think the vendors will really care either way. When you install Pro, they will thank you for the additional features and make it look like your’e constantly working to improve the site. Win/Win, yes? 🙂

    I checked out that plugin on CodeCanyon. If it stores the users profile details as users meta, then you could certainly use get_user_meta() ( https://codex.wordpress.org/Function_Reference/get_user_meta ) to pull the profile fields and show them on the vendor templates, or really anywhere on your WordPress site. That function will pull any value that’s in there, so it should work just fine! It just might need some editing of the templates to show things where you want them to be shown, that’s all. 🙂

    Ben

    #6488
    katie eldridge
    Participant

    Hi quick question…

    on the directions of coping files over to the template theme…Do I then delete the ones that exist is WC Vendor…https://www.wcvendors.com/knowledgebase/changing-vendor-templates/

    The files that remain in wc seem to override the files in the theme files for when I make edits to the new copied files. Am I understanding this wrong.

    Am I editing the theme ones or the ones in VC Vendor I guess…which one does the site read?

    Thanks! Sorry if this is a silly questions…I’ve not had my morning coffee yet.

    Kind Regards,

    Katie

    #6489
    WC Vendors Support
    Participant

    Hey look, your old account works again. 🙂

    The templates that you copied FROM the /plugins/wc-vendors/templates/ directory — stay in that directory, too. You do not delete them.

    Here’s an example:

    copy /wp-content/plugins/wc-vendors/templates/dashboard/links.php
    to: /wp-content/themes/YOURTHEME/wc-vendors/dashboard/links.php

    If you get the directory structure right, you’re good to go and it will use the theme folders version first. If you’re not seeing changes, it’s likely due to copying it into the wrong folder.

    The reason you copy files into the theme folder is because every time you update WC Vendors, your entire plugin folder will be replaced with the new version of the plugin. This means that any changes you’ve made to WC Vendors Templates in the plugin folder would be overwritten. That’s the whole reason for using the theme structure. It’s pretty common practice for most plugins with templates. 🙂

    Cheers

    Ben

    #6491
    katie eldridge
    Participant

    Hi Ben!
    Again thank you for your response! Always appreciated!

    Yes my account works again! Yay! 🙂

    If you couldn’t tell I’m such a WP newbie…so I’m on learning overload. I must confess I’m used to working with Joomla..so this is all new to me. I decided to go WP and WC Vendors because I find it to be the most advanced in looks, function and structure….over having to pay thousands of dollars out right. So I’m happy to learn even though it’s a bit of an adjustment.

    Well I had the idea right then. I think must have placed in the files wrong though being that it wasn’t reading from the copied files from my theme. Will try again here in a bit. Thanks again for your time!

    Kind Regards,

    Katie

    #6493
    WC Vendors Support
    Participant

    Joomla! *shutters*. Yuck. 😉 You’ll find WordPress to be way simpler, and way more powerful. Of course, I think you know that. But like any new software just learning how each part does its thing takes a little time. Have fun, if you get stuck, we’re always here.

    Ben

    #6514
    katie eldridge
    Participant

    yay! Got it to work! I had everything in the right place and your instructions were perfect…I simply was not clearing “CACHE” so I wasn’t seeing changes after saving changes to the files making me think I was doing something wrong. Thanks again for all your help. Now the fun part of getting custom fields in place!

    #6515
    katie eldridge
    Participant

    Btw…I knew something would be said about Joomla…lol. It’s a platform that has it’s pros and cons. However…I’m finding WP to have much simpler plugins and functions…and many more that are a lot more visually appealing and well designed.

    Example looking for a multi vendor there are some businesses that create them for several different CMS platforms and Joomla always look awful in comparison to WP or Magenta being the same software! To the point I didn’t know that it was created by the same company when checking out the demos. That says something right there. Well it spoke volumes to me…which is why I’ve converted for my last 2 sites to WP. Still feels awkward relearning how to do all the basics though. Lol I’ll get there. Just happy to find there is support where I need it!

    Thanks for all your time as always!

    #6516
    WC Vendors Support
    Participant

    LOL, yes, clearing the cache is always best practice if you change any plugin settings, pages, or useful stuff. 🙂 Glad you got it cleared up.

    #6517
    katie eldridge
    Participant

    Is there more documentation on the saving PHP portion of the code. When I apply these I can get the form fields to show up on the Shop Setting Page but it will not save. What is wrong with the saving Coding?

    add_action(‘wcvendors_settings_after_paypal’, ‘pv_add_custom_merchant_id_field’);
    function pv_add_custom_merchant_id_field() {
    ?>
    ________________________________________________________________________

    add_action( ‘wc_product_vendor_shop_settings_saved’, ‘pv_save_merchant_id’ );
    add_action( ‘wc_product_vendor_update_admin_user’, ‘pv_save_merchant_id’ );
    function pv_save_merchant_id( $user_id )
    {

    The code that saves to the profile page works perfectly and saves…as I used below with the custom fields that I want. However I want the fields to show and save on the Shop Setting page not the Edit Profile Page. Please Let me know where I can find what the proper coding is for this to work on the Shop Setting’s Page. Thank you!

    add_action( ‘show_user_profile’, ‘my_show_extra_profile_fields’ );
    add_action( ‘edit_user_profile’, ‘my_show_extra_profile_fields’ );

    function my_show_extra_profile_fields( $user ) { ?>

    ________________________________________________________________________

    add_action( ‘personal_options_update’, ‘my_save_extra_profile_fields’ );
    add_action( ‘edit_user_profile_update’, ‘my_save_extra_profile_fields’ );

    function my_save_extra_profile_fields( $user_id ) {

    #6523
    katie eldridge
    Participant

    I can NOT get the shop setting to save for the life of me. I’ve changed out the Save Action a million times and it either brakes the admin portion of my site or doesn’t work. The code that I use above does not save either without making any edits to it. I can get it to work with the Profile coding and change things out easily but can not figure out what the coding would be for the Shop Setting page.

    I also can’t find any documentation on it either other than this page: https://www.wcvendors.com/help/topic/how-to-add-custom-field-on-vendor-shop-setting/ I’ve followed the changes that are on the forum here and still does not work. I’ve tried to understand what the code it’s placing and looking up dozens of these action codes to compare to see what needs to be edited for it to work and I simply can’t figure it out.

    Please I’m willing to pay someone to get me the correct action code so that I am able to save changes on my form page. It seems like a simple enough fix which is so frustrating to me.

    I can’t move forward with anything until I figure out what the correct action code is. I’m willing to pay at this point. What would it cost to simply get the correct action code to get this page to save the forms fields on the shop setting page? I’ve spent entirely too much time on this as it is. :/

    #6524
    WC Vendors Support
    Participant

    I don’t see “update_user_meta” at all in there. That’s what saves it. 🙂

    https://gist.github.com/bentasm1/88225fd5d382a925e62c#file-functions-php

    #6525
    WC Vendors Support
    Participant

    Aah, I see, that thread is really old. If the thread is old, it might not be accurate. Things change. 🙂 Try this updated template:

    https://gist.github.com/bentasm1/88225fd5d382a925e62c

    #6526
    katie eldridge
    Participant

    Thank you Ben! You’ve been awesome!!!

    I got all excited seeing the
    add_action( ‘wcvendors_shop_settings_saved’, ‘pv_save_merchant_id’ );
    add_action( ‘wcvendors_update_admin_user’, ‘pv_save_merchant_id’ );
    function pv_save_merchant_id( $user_id )

    But still no cigar…Coping and pasting exactly above and then try to do changes do not save with entered to the merchant ID area….

    I’m pulling out all my hair on this…and clearing cache a million times throughout this process. why is it not saving???

    #6527
    WC Vendors Support
    Participant

    Copy and paste the code exactly as you see it above. Don’t change *anything*. Test it. 🙂 Does it work without you changing *anything*?

    #6529
    katie eldridge
    Participant

    I did a few time without any edits. Straight copy and paste. Still no go. It doesnt save changes to the id field when i click save. I am saving it in my childs theme function file does that make a difference? I will test it to try after dinner.

    #6535
    WC Vendors Support
    Participant

    I copied and pasted the code into my child themes functions.php

    Then I logged in as a vendor, and visited my Vendor Dashboard -> Shop Settings page. I then added some random numbers, and clicked save.

    Then, I logged in as admin, edited the vendors user account, and saw the changes saved there. I then added a few more numbers to the field and saved the user account, and it saved, there, too.

    Works like a champ.

    Are you following this method or doing something different?

    #6536
    katie eldridge
    Participant

    Hi Ben!

    I just tried it again today and see that the code works front side but not on admin side.

    I’ve also had made that topic in regards to having that issue with the upload but opposite where it allows a vendor to upload images on the admin side but not front side…would this be a theme issue again?

    I’ll have to get a hold of the theme developers again and see if they can resolve it if that is the case. Otherwise user editing is going to get very confusing for my customers.

    Again appreciate the follow up with this. Hope you have a great 4th of July weekend!

    #6557
    katie eldridge
    Participant

    I have a ticket open on the template forums so I’m hoping to get some answers from them with the issues above.

    I would like to know if there is a way to have the ‘custom shop details’ that I’m adding in to only show on the shop details page? Right now when I create a custom php widget it shows up on both the Store/Shop link and also the Vendor’s page. If that makes sense. I’ve tried using widget plugins to exclude it from showing up on my store/shop page but it ends up treating the store/shop link and the vendor profile page as the same type of page so it will delete it or add it to both pages. I hope that makes sense.

    Basically it’s reading http://www.mydomain.com/shop/ & http://www.mydomain/vendors/ as the same page. So on the shop page will pull up a random store profile page information which I don’t want. But works great on showing up on all the vendors sidebar pages. Is there a way I can specify even more so it will only show on the one?

    Even if I specify the exact link it will still either add or delete the widget form both.


    #6560
    WC Vendors Support
    Participant

    I have absolutely no idea….. You’re deep into customization territory here, best to ask the widget plugin author for help on this one.

    #6646
    katie eldridge
    Participant

    Ok…I came across the solution for only allowing the custom details of my plugin to only show on my vendor profile pages and NOT on the shop page…I used these plugins:

    Needed to use a plugin add on to widget logic to be able to specify better. Thought i would share here in case there would be anyone else you come across wanting this resolved. Thanks.

    https://wordpress.org/plugins/widget-logic-by-path/

    and placing: vendor/* in the widget logic text area. It works like a dream.

    I just now have to figure out my permission issues with uploading and saving only working on admin or front side. Will be happy to have pro version in place. 🙂 Thought I’d at least share my solution instead of always posting my problems. Thanks!

    When I’m done I’ll share a step by step work up of how I did everything for others that maybe interested in the coding and process I did up.

    #6649
    WC Vendors Support
    Participant

    That’s a neat solution. Well done!

    #6684
    katie eldridge
    Participant

    SOLVED: Discovered that the custom avatar plugin was creating the picture upload issue on the front end. ****You don’t have permission to attach files to this post.

    https://wedevs.com/support/topic/seller-cant-upload-bannerimages/

    Now that I have it disabled it seems to work…however I’d still like a way for my vendors to be able to edit their profile image as being their logo image…is there another plugin or option to be able to do this?

    #6685
    WC Vendors Support
    Participant
    #6687
    katie eldridge
    Participant

    Thanks Ben! Looking into this now.

    #6688
    katie eldridge
    Participant

    Simple Local Avatars plugin ….Works like a charm! Thank you thank you!

    Now for the Vendor list…mine shows 2 vendors per row…how do I change this to be 3 per row…I don’t recognize anything on the vendor-list.php that would indicate how many should show per row.

    #6689
    WC Vendors Support
    Participant

    Standard Woo shortcode arguments work on all WC Vendors shortcodes.

    [wcv_vendorslist columns=”3″] should do the trick. The default is 4 vendors per row, though, so you might be seeing a theme issue if you’re only seeing 2. And remember, this shortcode won’t show vendors with 0 products listed. If you need to show them, use the show_products=”yes” (default) or show_products=”no” (not default) as an additional shortcode argument.

    vendor-list.php is just the template that spits everything out, of course the shortcode arguments are another way, and you can combine the two for ultimate customization. 🙂

    Have fun. Sounds like you’re rockin hard on your new website. Would love to see it when you’re done.

    #6690
    katie eldridge
    Participant

    Hi Ben!

    Thanks for the code! It worked…I just had to make the adjustment on the vendor-list.php file… <div style=”display:inline-block; margin-right:5%;”> from 10% to 5% for it to show up with 3.

    I’ll be happy to share with you when I’m all done. Still have some customizing to work on with all the custom fields and like I said will be happy to share a post on how to configure it all in detail to help out others.

    Rocking hard for sure on the site but so happy to have the help along the way. Thanks for everything!

    #30184
    Philip
    Participant

    Hello lilmiss,
    I’ve just found this, sorry for bringing it back from the dead 🙂

    Could I ask how this all worked out for you in the end? If that’s your site in the screen shots above then I would say pretty well, that is a look I am after too, particularly the sidebar with social media links.

    Thanks in advance if you take the time to reply,
    Philip.

Viewing 31 posts - 1 through 31 (of 31 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.