Dashboard integration into tabs
-
Hi!
I want to have the[Affiliateshome]displaying in one of the tabs of my user profile/my-account/, so i need to add&tab=my-affiliateat the end of the different affiliate menu links in order to have the page displaying with the right tab open (otherwise it loads the user profile default page).I’ve already spent some times translating the frontend of the plugin into Chinese, hope I can get this work…
The current (default) affiliate user dashboard links point to
/?sub=overview&page_id=897is redirected to/my-account/?sub=overview
/?sub=sales&page_id=897is redirected to/my-account/?sub=sales
/?sub=payments&page_id=897is redirected to/my-account/?sub=payments
/?sub=creatives&page_id=897is redirected to/my-account/?sub=creatives
And I need to have them instead redirected to
/my-account/?sub=overview&tab=my-affiliate
/my-account/?sub=sales&tab=my-affiliate
/my-account/?sub=payments&tab=my-affiliate
/my-account/?sub=creatives&tab=my-affiliateI’ve already tried without success this:
1. Change the Affiliate HomePage in settings to/my-account/?tab=my-affiliate
2. Set 301 redirection from/?sub=overview&page_id=897or/my-account/?sub=overviewto/my-account/?sub=overview&tab=my-affiliate
3. Looked into the AffiliatesHome.php found that:$response->viewData['navigation'] = array( array( __( 'Overview', 'affiliates-manager' ), $this->getLink(array('sub' => 'overview'))), array( __( 'Sales', 'affiliates-manager' ), $this->getLink(array('sub' => 'sales'))), array( __( 'Payment History', 'affiliates-manager' ), $this->getLink(array('sub' => 'payments'))), array( __( 'Creatives', 'affiliates-manager' ), $this->getLink(array('sub' => 'creatives'))),I’m not a developer so I thought I just need to add my tab name here like this
$this->getLink(array('sub' => 'overview&tab=my-affiliate'))but the URL is not recognized, “&” and “=” are transformed into %something.Do you have an idea of a snippet I could use to resolve this?
Thanks!
The topic ‘Dashboard integration into tabs’ is closed to new replies.