WC Lovers

WooCommerce Frontend Manager - Multivendor marketplace vendor dashboard

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!

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: how to disable (or make private) vendor-groups page #92242
    system
    Participant

    plus last post :
    not use wild domain settings in your wordpress site.
    you need add all available domains in your wordpress site(like: domain.com http://www.domain.com sub.domain.com) to the $current_url conditions.
    if some domains pass the condition ( stripos($current_url, home_url(‘vendor-groups/’)) === 0 ) , the code will be useless!

    in reply to: how to disable (or make private) vendor-groups page #92241
    system
    Participant

    the code for the shortcode is to disable the vendor’s info to public, not to disable the vendor-groups.

    here is my code to disable the vendor-groups endpoints :
    // ====================
    //diable wcfm endpoints : store, vendor-groups
    $current_url = ( is_ssl() ? ‘https://’ : ‘http://’ ) . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’];
    if( stripos($current_url, home_url(‘store/’)) === 0 or stripos($current_url, home_url(‘vendor-groups/’)) === 0 ) {
    if ( wp_redirect( home_url() ) ) {
    exit;
    }
    }

    // ====================
    total proccess to disable all vendor’s info to public frontend and vendor’s role:
    1. disable and hide store sidebar, vendor sidebar and vendor’s info fields(name/tel/email/address/etc.) at marketplace settings & store settings & Capability settings.
    2. use this free plugin( https://wordpress.org/plugins/wp-widget-disable/ ) to disable all wcfm widgets(marketplace & store & vendor).
    3. use remove_shortcode() function as following code in theme’s functions.php :
    // —————-
    add_action( ‘init’, ‘remove_wcfm_shortcodes’,9999 );
    function remove_wcfm_shortcodes() {
    remove_shortcode( ‘wcfm_store_info’ );
    remove_shortcode( ‘wcfm_inquiry’ );
    remove_shortcode( ‘wcfm_follow’ );
    remove_shortcode( ‘wcfm_store_fb_feed’ );
    remove_shortcode( ‘wcfm_store_twitter_feed’ );
    remove_shortcode( ‘wcfm_stores’ );
    remove_shortcode( ‘wcfm_store_hours’ );
    }
    // —————-
    4. disable all endpoint begin with /store/ and /vendor-groups/ links.
    //diable wcfm endpoints : store, vendor-groups
    // —————-
    $current_url = ( is_ssl() ? ‘https://’ : ‘http://’ ) . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’];
    if( stripos($current_url, home_url(‘store/’)) === 0 or stripos($current_url, home_url(‘vendor-groups/’)) === 0 ) {
    if ( wp_redirect( home_url() ) ) {
    exit;
    }
    }
    // —————-
    hope it is useful for you and another b2b users.

    in reply to: how to disable (or make private) vendor-groups page #91232
    system
    Participant

    @lewis

    I have thinked out a proccess to disable all vendor’s info to public frontend and vendor’s role:
    1. disable and hide store sidebar, vendor sidebar and vendor’s info fields(name/tel/email/address/etc.) at marketplace settings & store settings & Capability settings.
    2. use this free plugin( https://wordpress.org/plugins/wp-widget-disable/ ) to disable all wcfm widgets(marketplace & store & vendor).
    3. use remove_shortcode() function as following code in theme’s functions.php :
    // —————-
    add_action( ‘init’, ‘remove_wcfm_shortcodes’,9999 );
    function remove_wcfm_shortcodes() {
    remove_shortcode( ‘wcfm_store_info’ );
    remove_shortcode( ‘wcfm_inquiry’ );
    remove_shortcode( ‘wcfm_follow’ );
    remove_shortcode( ‘wcfm_store_fb_feed’ );
    remove_shortcode( ‘wcfm_store_twitter_feed’ );
    remove_shortcode( ‘wcfm_stores’ );
    remove_shortcode( ‘wcfm_store_hours’ );
    }
    // —————-
    4. disable all endpoint begin with /store/ and /vendor-groups/ links.

    I think it will be work and I am trying the step 4 for now.

    hope it is useful for you and another b2b users.

    in reply to: how to disable (or make private) vendor-groups page #90682
    system
    Participant

    +1
    I need this too.
    Our B2B marketplace need hide the (Our Customers)vendor’s info for business safty requirement.
    Most B2B Customers(as vendor role in marketplace) require to not public theirs info to public.

    I write an additional action to disable these links for no-admin now.
    I hope there will be a option in backend to disable to vendor’s list page and shop page in wcfm-u or wcfm, or just use a shortcode page endpoint hold it for free usage.
    You code is great, Hope you to be better.
    Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)