If I open any product,by default "General" tab is showing.
Like below screenshot.
But I want to open "Prices" tab by default. Like below screenshot.
Anyone can tell me how to do that.?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityMage_Adminhtml_Block_Catalog_Product_Edit_Tabs
and find the appropriate tab.
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')
);
}
'tab' => 'group_8'
instead of 'active_tab' => 'group_8'
, it worked fine to me.
Mar 14, 2018 at 7:43