Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Show WCFM link on Vendor/My-Account/Dashboard (Woocom page)
- This topic has 5 replies, 2 voices, and was last updated 6 years, 6 months ago by
WCFM Forum.
Viewing 5 reply threads
- AuthorPosts
- August 31, 2018 at 3:55 am #30289
- August 31, 2018 at 5:39 pm #30371
WCFM Forum
MemberHi,
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
- September 1, 2018 at 3:59 am #30410
wwsAdmin
ParticipantHi,
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
- September 1, 2018 at 1:47 pm #30422
WCFM Forum
MemberHi,
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
- September 1, 2018 at 2:51 pm #30428
wwsAdmin
ParticipantHI,
Thanks for helping out.
Wonderful support.
thanks
- September 2, 2018 at 5:37 pm #30531
WCFM Forum
MemberYou are welcome 🙂
- AuthorPosts
Viewing 5 reply threads
- The topic ‘Show WCFM link on Vendor/My-Account/Dashboard (Woocom page)’ is closed to new replies.