Problem with store name and link

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 5 reply threads
  • Author
    Posts
    • #61073
      bsico
      Guest

      Hi
      I have encountered a big problem
      The problem is that different sellers can have the same name as the store
      This is a big problem
      To clarify more
      I have registered as a seller on your demo site
      I was able to give the name of the store the same as one of the previously registered stores

    • #61612
      WCFM Forum
      Keymaster

      Hi,

      Umm … how this is possible!

      Store name and slug are related. Now slug should be unique for each stores.

      You didn’t receive any error for duplicate “slug”?

      Thank You

    • #61647
      bsico
      Guest

      I uploaded the video to you to see the problem and understand me
      link youtube : https://youtu.be/81ME7ZDWLWU
      I am developing a site for a client as a freelance
      I was surprised by the problem, so I said that the problem of the add-on settings was searched a lot but without a result
      I decided to try on your demo site
      I found that like you there is the problem on your site
      how to fix probleme

    • #61785
      WCFM Forum
      Keymaster

      Hi,

      Please add this code to your child theme’s functions.php –

      add_filter( 'wcfm_validate_store_slug', function( $is_allow, $store_slug ) {
      	$seller_info = get_user_by( 'slug', $store_slug );
      	if( $seller_info ) return false;
      	return $is_allow;
      }, 50, 2 );

      If you do not have child then add using this – https://wordpress.org/plugins/code-snippets/

      Thank You

    • #61926
      Bsico
      Guest

      Is working
      thanks

    • #61946
      WCFM Forum
      Keymaster

      Great … we will add this in WCFM Marketplace core in next update.

Viewing 5 reply threads
  • The topic ‘Problem with store name and link’ is closed to new replies.