Show WCFM link on Vendor/My-Account/Dashboard (Woocom page)

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Show WCFM link on Vendor/My-Account/Dashboard (Woocom page)

Viewing 5 reply threads
  • Author
    Posts
    • #30289
      wwsAdmin
      Participant

      Hi team,

      can we show WCFM page link on my account dashboard (IMG attached).

      Using WC marketplace. Or piece of code which can enable this.

      Thanks

      Attachments:
      You must be logged in to view attached files.
    • #30371
      WCFM Forum
      Member

      Hi,

      Which multi-vendor plugin you are using –

      WC Marketplace (https://wordpress.org/plugins/dc-woocommerce-multi-vendor/) or WCFM Marketplace?

      WCFM Marketplace already has this. (Only for vendor)

      I have to check for WC Marketplace.

      Thank You

    • #30410
      wwsAdmin
      Participant

      Hi,

      Using WC MARKETPLACE. WOOCOM MULTI VENDOR ONE.

      Next release planning to switch to WCFM MARKETPLACE.

      So can you help me how to make it visible for WC Marketplace plugin. Something similar to WCFM Marketplace.

      Thanks

    • #30422
      WCFM Forum
      Member

      Hi,

      OK fine, no issues.

      Kindly add this for the purpose –

      function wcfm_custom_dashboard_my_account_menu_items( $items ) {
      	global $WCFM, $WCFMmp;
      	
      	if( function_exists('wcfm_is_vendor') && wcfm_is_vendor() ) {
      		$dashboard_page_title = __( 'Store Manager', 'wc-multivendor-marketplace' );
      		$pages = get_option("wcfm_page_options");
      		if( isset($pages['wc_frontend_manager_page_id']) && $pages['wc_frontend_manager_page_id'] ) {
      			$dashboard_page_title = get_the_title( $pages['wc_frontend_manager_page_id'] );
      		}
      		$dashboard_page_title = apply_filters( 'wcfmmp_wcmy_dashboard_page_title', $dashboard_page_title ); 
      		
      		$items = array_slice($items, 0, count($items) - 2, true) +
      																	array(
      																				"wcfm-store-manager" => __( $dashboard_page_title, 'wc-multivendor-marketplace' )
      																				) +
      																	array_slice($items, count($items) - 2, count($items) - 1, true) ;
      	}
      																
      	return $items;
      }
      
      function wcfm_custom_dashboard_my_account_endpoint_redirect( $url, $endpoint, $value, $permalink ) {
      	if( function_exists('wcfm_is_vendor') && ( $endpoint == 'wcfm-store-manager') )
      		$url = get_wcfm_url();
      	return $url;
      }
      add_filter( 'woocommerce_account_menu_items', 'wcfm_custom_dashboard_my_account_menu_items', 210 );
      add_filter( 'woocommerce_get_endpoint_url', 'wcfm_custom_dashboard_my_account_endpoint_redirect', 10, 4 );

      Thank You

    • #30428
      wwsAdmin
      Participant

      HI,

      Thanks for helping out.

      Wonderful support.

      thanks

    • #30531
      WCFM Forum
      Member

      You are welcome 🙂

Viewing 5 reply threads
  • The topic ‘Show WCFM link on Vendor/My-Account/Dashboard (Woocom page)’ is closed to new replies.