php - Change the order of navigation in my account page in magento -


i add new link offline order in account page in frontend on account page .

its add in navigation

but show in last in menu.

i want add offline order link after my order

my code given below add link in navgation link

    <reference name="customer_account_navigation">            <action method="addlink" translate="label" module="offorder"><name>offlineorders</name><path>offorder/offorder/history</path><label>my offlineorder</label></action>      </reference>  </customer_account> 

what have change link order ??

there no "out of box" way of doing this, unless put code in sales.xml layout file right under link want.
because mage_customer_block_account_navigation block handles customer account menu not have way sort links. see method adds links:

public function addlink($name, $path, $label, $urlparams=array()) {     $this->_links[$name] = new varien_object(array(         'name' => $name,         'path' => $path,         'label' => $label,         'url' => $this->geturl($path, $urlparams),     ));     return $this; } 

there other option, override block mentioned above , in method getlinks, instead of returning links, can arrange first. wouldn't go there.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -