2 Improve English
source | link

hi Mage17 i have tryGive this ...a try:

local.xmllocal.xml - sits in your layout folder:

<?xml version="1.0"?>
<layout version="0.1.0">
<!--Add a link to navigation-->
<customer_account>
    <reference name="customer_account_navigation" >
        <action method="addLink"><name>plink</name><path>customer/plink</path><label>plink</label></action>
    </reference>
</customer_account>
<!--Add a link to navigation-->
<!--controller action-->
<customer_plink_index translate="label">
    <label>Customer Plink Dashboard</label>
    <update handle="customer_account"/>
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
    </reference>
    <reference name="my.account.wrapper">
        <block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
            <block type="customer/account/dashboard_plink" name="plink" template="customer/account/dashboard/plink.phtml"/>
        </block>
    </reference>
</customer_plink_index>


createCreate a controller app/code/local/Mage/Customer/controllers/PlinkController, e.phpg. app/code/local/Mage/Customer/controllers/PlinkController.php:

<?php
class Mage_Customer_PlinkController extends    Mage_Core_Controller_Front_Action
{
    public function indexAction()
{
    $this->loadLayout();
    $this->_initLayoutMessages('customer/session');
    $this->_initLayoutMessages('catalog/session');

    $this->getLayout()->getBlock('content')->append(
        $this->getLayout()->createBlock('dashboard_plink')
    );
    $this->getLayout()->getBlock('head')->setTitle($this->__('plink'));
    $this->renderLayout();
}


}    

create file plinkCreate a template, e.phtml at frontend\base\theme\package\customer\account\dashboard\plinkg.phtml plink.phtml in frontend\base\theme\package\customer\account\dashboard\plink.phtml:

<div class="welcome-msg">
<?php echo Mage::getSingleton('customer/session')->getCustomerId();?>
<?php echo Mage::helper('customer')->getCustomerName(); ?>

/*put yuoryour logic here*/

</div>

put belowPut the code in app\design\theme\package\default\template\customer\account\dashboard.phtml inside class="box-account boxbelow into the dashboard template -info" app\design\theme\package\default\template\customer\account\dashboard.phtml, inside the wrapper with class="box-account box-info":

<?php echo $this->getChildHtml('plink') ?>

enter image description hereScreenshot of custom tab

hi Mage17 i have try this ...

local.xml

<?xml version="1.0"?>
<layout version="0.1.0">
<!--Add a link to navigation-->
<customer_account>
    <reference name="customer_account_navigation" >
        <action method="addLink"><name>plink</name><path>customer/plink</path><label>plink</label></action>
    </reference>
</customer_account>
<!--Add a link to navigation-->
<!--controller action-->
<customer_plink_index translate="label">
    <label>Customer Plink Dashboard</label>
    <update handle="customer_account"/>
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
    </reference>
    <reference name="my.account.wrapper">
        <block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
            <block type="customer/account/dashboard_plink" name="plink" template="customer/account/dashboard/plink.phtml"/>
        </block>
    </reference>
</customer_plink_index>


create controller app/code/local/Mage/Customer/controllers/PlinkController.php

<?php
class Mage_Customer_PlinkController extends    Mage_Core_Controller_Front_Action
{
    public function indexAction()
{
    $this->loadLayout();
    $this->_initLayoutMessages('customer/session');
    $this->_initLayoutMessages('catalog/session');

    $this->getLayout()->getBlock('content')->append(
        $this->getLayout()->createBlock('dashboard_plink')
    );
    $this->getLayout()->getBlock('head')->setTitle($this->__('plink'));
    $this->renderLayout();
}


}    

create file plink.phtml at frontend\base\theme\package\customer\account\dashboard\plink.phtml

<div class="welcome-msg">
<?php echo Mage::getSingleton('customer/session')->getCustomerId();?>
<?php echo Mage::helper('customer')->getCustomerName(); ?>

/*put yuor logic here*/

</div>

put below code in app\design\theme\package\default\template\customer\account\dashboard.phtml inside class="box-account box-info"

<?php echo $this->getChildHtml('plink') ?>

enter image description here

Give this a try:

local.xml - sits in your layout folder:

<?xml version="1.0"?>
<layout version="0.1.0">
<!--Add a link to navigation-->
<customer_account>
    <reference name="customer_account_navigation" >
        <action method="addLink"><name>plink</name><path>customer/plink</path><label>plink</label></action>
    </reference>
</customer_account>
<!--Add a link to navigation-->
<!--controller action-->
<customer_plink_index translate="label">
    <label>Customer Plink Dashboard</label>
    <update handle="customer_account"/>
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
    </reference>
    <reference name="my.account.wrapper">
        <block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
            <block type="customer/account/dashboard_plink" name="plink" template="customer/account/dashboard/plink.phtml"/>
        </block>
    </reference>
</customer_plink_index>


Create a controller, e.g. app/code/local/Mage/Customer/controllers/PlinkController.php:

<?php
class Mage_Customer_PlinkController extends    Mage_Core_Controller_Front_Action
{
    public function indexAction()
{
    $this->loadLayout();
    $this->_initLayoutMessages('customer/session');
    $this->_initLayoutMessages('catalog/session');

    $this->getLayout()->getBlock('content')->append(
        $this->getLayout()->createBlock('dashboard_plink')
    );
    $this->getLayout()->getBlock('head')->setTitle($this->__('plink'));
    $this->renderLayout();
}


}    

Create a template, e.g. plink.phtml in frontend\base\theme\package\customer\account\dashboard\plink.phtml:

<div class="welcome-msg">
<?php echo Mage::getSingleton('customer/session')->getCustomerId();?>
<?php echo Mage::helper('customer')->getCustomerName(); ?>

/*put your logic here*/

</div>

Put the code below into the dashboard template - app\design\theme\package\default\template\customer\account\dashboard.phtml, inside the wrapper with class="box-account box-info":

<?php echo $this->getChildHtml('plink') ?>

Screenshot of custom tab

1
source | link

hi Mage17 i have try this ...

local.xml

<?xml version="1.0"?>
<layout version="0.1.0">
<!--Add a link to navigation-->
<customer_account>
    <reference name="customer_account_navigation" >
        <action method="addLink"><name>plink</name><path>customer/plink</path><label>plink</label></action>
    </reference>
</customer_account>
<!--Add a link to navigation-->
<!--controller action-->
<customer_plink_index translate="label">
    <label>Customer Plink Dashboard</label>
    <update handle="customer_account"/>
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
    </reference>
    <reference name="my.account.wrapper">
        <block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
            <block type="customer/account/dashboard_plink" name="plink" template="customer/account/dashboard/plink.phtml"/>
        </block>
    </reference>
</customer_plink_index>


create controller app/code/local/Mage/Customer/controllers/PlinkController.php

<?php
class Mage_Customer_PlinkController extends    Mage_Core_Controller_Front_Action
{
    public function indexAction()
{
    $this->loadLayout();
    $this->_initLayoutMessages('customer/session');
    $this->_initLayoutMessages('catalog/session');

    $this->getLayout()->getBlock('content')->append(
        $this->getLayout()->createBlock('dashboard_plink')
    );
    $this->getLayout()->getBlock('head')->setTitle($this->__('plink'));
    $this->renderLayout();
}


}    

create file plink.phtml at frontend\base\theme\package\customer\account\dashboard\plink.phtml

<div class="welcome-msg">
<?php echo Mage::getSingleton('customer/session')->getCustomerId();?>
<?php echo Mage::helper('customer')->getCustomerName(); ?>

/*put yuor logic here*/

</div>

put below code in app\design\theme\package\default\template\customer\account\dashboard.phtml inside class="box-account box-info"

<?php echo $this->getChildHtml('plink') ?>

enter image description here