PHP code example of monsieurbiz / mbiz_customernavigation

1. Go to this page and download the library: Download monsieurbiz/mbiz_customernavigation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

monsieurbiz / mbiz_customernavigation example snippets


public function updateLink($name, $path, $label, $urlParams = array())

public function deleteLink($name);
xml
<customer_account>
    <!-- Update navigation -->
    <reference name="customer_account_navigation">
        <!-- Clean -->
        <action method="deleteLink">
            <link>billing_agreements</link>
            <link>recurring_profiles</link>
            <link>OAuth Customer Tokens</link>
            <link>downloadable_products</link>
        </action>

        <!-- Update some links -->
        <action method="updateLink" translate="label" module="customer">
            <name>account</name>
            <path>customer/account/</path>
            <label>My Dashboard</label>
        </action>
    </reference>
</customer_account>