2

I always select 'Simple Product' (product type) on product grid page before I search any product to see only simple product , not group or other type

How to make the 'Simple Product' is already selected whenever I visit product grid page as default?

1

You can do this by adding

setDefaultFilter('fieldName'=>'FieldValue') 

at class catalog grid class Mage_Adminhtml_Block_Catalog_Product_Grid at _construct() function;

As you want to simple product as default filter then try thus:

 $this->setDefaultFilter(array('type'=>'simple'));
5
  • it is not working.! Jun 17 '15 at 9:37
  • Can you explain more detail for store owner to be able to understand..? like what file I have to edit Thanks!
    – Yohan
    Jun 17 '15 at 9:42
  • silly mistake type_id should be type.. it works
    – Amit Bera
    Jun 17 '15 at 9:43
  • lol. Good work though. +1 for your answer, Jun 17 '15 at 9:45
  • john, i cannot understand what explain. you need.. it guess that question will give you full answer
    – Amit Bera
    Jun 17 '15 at 11:38

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.