Home Forums WC Vendors Pro Support Can't save store 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 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #63957
    Marko
    Participant

    Hi,

    So I removed Store Name field on vendor’s pro dashboard, and now when I try to save settings, I’m getting an error:
    “That store name is already taken. Your store name must be unique.
    Settings have not been saved.”
    These are the fields I removed from store-settings.php:

    <!-- Store Name -->
    		<?php WCVendors_Pro_Store_Form::store_name( $store_name ); ?>
    
    		<?php do_action( 'wcvendors_settings_after_shop_name' ); ?>

    Vendor’s Store Names are by default inherited from site’s usernames. So I do not need that “Store Name” field on a dashboard. How can I bypass this error/not require unique store name when saving settings?

    Thanks.

    #64078
    Anna
    Member

    @markoi1
    Marko,
    Try adding this to your theme/child theme functions.php:
    https://gist.github.com/fervous/8c9118a388c1bf2db9d6a9c839a47f33

    #64083
    Marko
    Participant

    Thanks but it’s not working.. Still getting the same error.

    #64086
    Marko
    Participant

    I assume that is some bug, as it shows up every time even if Store Name is unique

    #64088
    Marko
    Participant

    I’ve removed this line from class-pro-vendor-controller, seems to be working now..

    // Check if the Shop name is unique
    $users = get_users( array( ‘meta_key’ => ‘pv_shop_slug’, ‘meta_value’ => sanitize_title( $_POST[ ‘_wcv_store_name’ ] ) ) );

    if ( !empty( $users ) && $users[ 0 ]->ID != $vendor_id ) {
    wc_add_notice( __( ‘That store name is already taken. Your store name must be unique. <br /> Settings have not been saved.’, ‘wcvendors-pro’ ), ‘error’ );
    return;
    }

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