• Best Magento

    Marketplace Extension

  • Most Reliable

    & Dedicated Support

  • Most Reasonable

    & Flexible Price

How to add top links to vendor cpanel

Let use the following xml code to your layout file to add a top links to vendor cpanel.

  1. <?xml version="1.0"?>
  2. <layout version="0.1.0">
  3. <!-- Some code here -->
  4. <vendors_logged_in>
  5. <reference name="toplinks">
  6. <action method="addLink" translate="label title" module="vendorsconfig">
  7. <label>Configuration</label>
  8. <url helper="vendorsconfig/getConfigUrl" />
  9. <title>Configuration</title>
  10. <prepare />
  11. <urlParams />
  12. <position>20</position>
  13. <liParams>class="setting"</liParams>
  14. </action>
  15. </reference>
  16. </vendors_logged_in>
  17. <!-- Some code here -->
  18. </layout>

Define the getConfigUrl from helper VendorsConfig

  1. <?php
  2.  
  3. class VES_VendorsConfig_Helper_Data extends Mage_Core_Helper_Abstract
  4. {
  5. // Some code here
  6. public function getConfigUrl(){
  7. return Mage::getUrl('vendors/config');
  8. }
  9. // Some code here
  10. }