Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Problem with store name and link
- This topic has 5 replies, 2 voices, and was last updated 4 years, 11 months ago by WCFM Forum.
- AuthorPosts
- May 7, 2019 at 2:30 pm #61073bsicoGuest
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 - May 10, 2019 at 10:09 am #61612WCFM ForumKeymaster
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
- May 10, 2019 at 2:02 pm #61647bsicoGuest
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 - May 10, 2019 at 8:20 pm #61785WCFM ForumKeymaster
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
- May 12, 2019 at 12:31 pm #61926BsicoGuest
Is working
thanks - May 12, 2019 at 3:25 pm #61946WCFM ForumKeymaster
Great … we will add this in WCFM Marketplace core in next update.
- AuthorPosts
- The topic ‘Problem with store name and link’ is closed to new replies.