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
  1. Check this class

Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs

and find the appropriate tab.

  1. Override it to change the tab ordering.
  • Super. I found the solution from your answer. Thank you @Shireen. – Nagaraj Juro Mar 14 '18 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
    Thanks @Geethika. I used 'tab' => 'group_8' instead of 'active_tab' => 'group_8', it worked fine to me. – Nagaraj Juro Mar 14 '18 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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