Store name as username

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 7 reply threads
  • Author
    Posts
    • #124638
      admin-6781
      Participant

      Is there a way to make store name and username same? When vendor register just enter store name and login with store name?
      thank you

    • #124665
      Sushobhan
      Keymaster

      Hi,
      Thanks for getting in touch with us!
      First ensure Username field is present in your vendor registration form. If not, you can enable it from Admin dashboard >> Memberships >> Membership Settings (cogwheel symbol at the extreme right of the header panel) >> Registration Fields page.
      Now, use the following code to remove Store Name field from registration page.
      add_filter( 'wcfm_is_allow_store_name', '__return_false' );
      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
      Let me know how this goes.
      Thanks!

    • #124724
      admin-6781
      Participant

      Sorry incase my question wasnt clear.

      Lets say I vendor created an account name “username” after that he doesn’t need to set store name. his store name will be “username” too. instead of My Store or anything else. So this person can login with username . and his store name will be automatically “username” is this possible?

    • #125157
      Sushobhan
      Keymaster

      Hi,
      Have you tried the steps I told you. It should do what you want.
      I think you might get confused with the ‘My Store’ label, just beside the vendor store logo. Ref: https://imgur.com/WrNZ4P9. Go to the store page and ther you will see the store name same as username.
      If you want, you can change ‘My Store’ label from WCFM admin dashboard >> Settings >> Dashboard >> My Store Label. By default this text is same for all the vendors, but that too can be customised using the following snippet-

      add_filter( 'wcfm_store_name', function($store_name) {
          $store_user = wcfmmp_get_store();
          if($store_user) {
              $vendor_id = $store_user->get_id();
              $store_open_by = apply_filters( 'wcfm_shop_permalink_open_by', 'target="_blank"', $vendor_id );
              $shop_link       = wcfmmp_get_store_url( $vendor_id );
              return '<a ' . $store_open_by . ' href="' . apply_filters('wcfmmp_vendor_shop_permalink', $shop_link) . '">' . ucfirst( $store_user->get_shop_name() ) . '</a>';
          }
          return $store_name;
      }, 11 );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
      Let me know how this goes.
      Thanks!

    • #125170
      admin-6781
      Participant

      Thank you very much with that add function code it worked.

      Best support!!

    • #125173
      Sushobhan
      Keymaster

      You are always welcome 🙂
      Let me know if there’s anything else we can help you with.
      Can we ask for a favor? Would you mind taking a few minutes to review our plugin (if you haven’t already) at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

    • #125186
      admin-6781
      Participant

      5 star review done
      twitter follow done

      Thanks

    • #125192
      Sushobhan
      Keymaster

      Thank you. It means a lot to us! 🙂

Viewing 7 reply threads
  • You must be logged in to reply to this topic.