1

If I open any product,by default "General" tab is showing.

Like below screenshot.

General Tab

But I want to open "Prices" tab by default. Like below screenshot.

Prices Tab

Anyone can tell me how to do that.?

2 Answers 2

2
  1. Check this class

Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs

and find the appropriate tab.

  1. Override it to change the tab ordering.
1
  • Super. I found the solution from your answer. Thank you @Shireen. Mar 14, 2018 at 7:42
2

Override your Mage_Adminhtml_Block_Catalog_Product_Grid block and change the getRowUrl() function to include param for active_tab.

Here I have set it to the name (group_8) of the 'Prices' tab.Inspect your prices tab element to find this.

public function getRowUrl($row)
{
    return $this->getUrl('*/*/edit', array(
        'store'=>$this->getRequest()->getParam('store'),
        'id'=>$row->getId(),
        'active_tab' => 'group_8')
    );
}
1
  • 1
    Thanks @Geethika. I used 'tab' => 'group_8' instead of 'active_tab' => 'group_8', it worked fine to me. Mar 14, 2018 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.