Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Open vendor dashboard in a new tab
Tagged: dashboard
- This topic has 4 replies, 2 voices, and was last updated 4 years, 7 months ago by wiz.sas.project.
- AuthorPosts
- May 26, 2020 at 6:34 pm #135414wiz.sas.projectParticipant
Hi,
Is it possible to configure the dashboard so that it opens in a new tab?
thanks in advance ! - May 26, 2020 at 7:38 pm #135440Sarmistha ChakrabortyMember
Hello,
Sorry, your requirement is not so clear. Can you explain little more about your requirement(if possible with screenshot)
Thanks.
- May 27, 2020 at 12:32 pm #135659wiz.sas.projectParticipant
hi Sarmistha,
Sorry, it was not very clear.
I would like that when a seller clicks on store manager from the “my account” page, rather than redirecting him to the page while staying in the same browser tab, I would prefer that the store manager opens automatically in a new tab .Attachments:
You must be logged in to view attached files. - May 27, 2020 at 8:03 pm #135877Sarmistha ChakrabortyMember
Hello,
For this you need to override “navigation.php” file in your theme’s folder(yourtheme/woocommerce/myaccount/navigation.php) from “\wp-content\plugins\woocommerce\templates\myaccount”
And modify the code –<li class="<?php echo wc_get_account_menu_item_classes( $endpoint ); ?>"> <?php if( $endpoint == 'wcfm-store-manager') { ?> <a target="_blank" href="<?php echo esc_url( wc_get_account_endpoint_url( $endpoint ) ); ?>"><?php echo esc_html( $label ); ?></a> <?php } else { ?> <a href="<?php echo esc_url( wc_get_account_endpoint_url( $endpoint ) ); ?>"><?php echo esc_html( $label ); ?></a> <?php } ?> </li>
Thanks.
Attachments:
You must be logged in to view attached files. - May 28, 2020 at 6:34 pm #136178wiz.sas.projectParticipant
Hi,
Thank you very much it works well for me !
have a nice day
- AuthorPosts
- The topic ‘Open vendor dashboard in a new tab’ is closed to new replies.