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
  • server.monks123
    Participant

    Hey Sarmistha can you help me with a code snippet to redirect only vendors to wcfm vendor dashboard on login

    server.monks123
    Participant

    can you provide us with any snippet to add vendor name and address in pdf invoice Please.

    in reply to: Logout Redirection #145770
    server.monks123
    Participant

    add_filter( ‘wcfm_logout_url’, function( $logout_url ) {
    if ( wcfm_is_vendor() ) {
    return ‘https://inditribes.co.in/’;
    }
    return $logout_url;
    } );
    add_filter( ‘woocommerce_get_endpoint_url’, function($url, $endpoint, $value, $permalink) {
    if ( $permalink === ‘https://inditribes.co.in/’ ) {
    return add_query_arg( ‘wcfm_logout’, ‘yes’, $permalink );
    }
    return $url;
    }, 10, 4 );
    function redirect_page() {
    global $wp;
    if ( ! empty( $_REQUEST[‘wcfm_logout’] ) && ! empty( $_REQUEST[‘_wpnonce’] ) && wp_verify_nonce( sanitize_key( $_REQUEST[‘_wpnonce’] ), ‘customer-logout’ ) ) {
    wp_safe_redirect( str_replace( ‘&’, ‘&’, wp_logout_url( esc_url_raw( ‘https://inditribes.co.in/’ ) ) ) );
    exit;
    }
    }
    add_action( ‘template_redirect’, ‘redirect_page’ );

    in reply to: Logout Redirection #145028
    server.monks123
    Participant

    Hello Sushobhan
    I also tried the code, The logout redirection worked but wen the vendor logs out from Store Manager, It gives them a prompt, something like “Do You really want to logout from “Website Url”? On confirmation, it redirects to the wordpress admin Login Url instead of the https://inditribes.co.in
    Please help me out

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)