2

How I can move account My orders list in Account dashboard ? As My orders are on top at this time.

block block-dashboard-orders

what will be block name to move this ?

Learner
  • 238
  • 3
  • 17

1 Answers1

2

The block which is show recent order section on customer account page is "customer_account_dashboard_top"

The code of this block are avilable here.

app/design/frontend/[YOUR THEME]/layout/sales.xml

<customer_account_index>
        <!-- Mage_Sales -->
        <!--remove name="customer_account_dashboard_top"/-->
        <reference name="customer_account_dashboard">
            <block type="sales/order_recent" name="customer_account_dashboard_top" as="top" template="sales/order/recent.phtml"/>
        </reference>

    </customer_account_index>

And if you want to move that block at last then, you can do that by using phtml file.

app/design/frontend/[YOUT THEME]/template/customer/account/dashboard.phtml

arround line no.33 there is code like this.

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

Move that code after this line.

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

So now the order block is show at last.

Dhiren Vasoya
  • 668
  • 7
  • 20