Home Forums WC Vendors Pro Support Hide Store Name in Vendor's dashboard settings

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59592
    Marko
    Participant

    Hi,

    Would it be possible to hide/disable editing of the field “Store Name” in vendor’s dashboard settings?
    I don’t want users to be able to edit their store name. Since I’m using custom wordpress registration, their store name gets assigned automatically upon registration. I’m fine with that field being around (I just don’t want it to be editable).

    #59657
    Anna
    Member

    Hello,
    You’ have to hide it by modifying the store-settings.php template or by using a filter to hide the field.
    This filter would hide the field- but it still leaves the title and instructions…
    https://gist.github.com/fervous/5230a558090a41f63b81d2ba4a626f99/edit

    If you modify the template, you can comment it out.. but make sure that a Store name has been chosen, as it is a required field so it will cause issues if a store name is not chosen.
    Comment out:

    <!-- Store Name -->
    		<?php // WCVendors_Pro_Store_Form::store_name( $store_name ); ?>

    To modify templates, see here:
    https://www.wcvendors.com/kb/changing-vendor-templates/

    #60050
    Marko
    Participant

    Hi Anna,

    Thank you for your help, highly appreciated!

    So I’ve comment out the store name field, although the Store Name field is gone on dashboard settings, now when I try to save payment details on vendor’s dashboard settings, I’m getting an error saying that store name needs to be unique.

    Since I’m using custom registration, users can pick their username when registering, which is then assigned by WC Vendors as a Vendor’s Store Name.

    Do I have to to add some code to bypass Store name field when saving the form on vendor pro dashboard settings? I’ve found this article http://docs.wcvendors.com/knowledge-base/wcv-default-store-name-2/ but I’m not sure if it’s relevant and where should I place this code..

    Thanks again.

    Best,

    Marko

    #60114
    Anna
    Member

    @markoi1
    Marko,
    That code would just change the default store name settings (by default username ‘s store), and it would be placed in your theme/child theme functions.php file.

    Is the vendor’s store name actually being assigned with your custom application?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.