I am trying to show some products based on a attribute value in an admin grid.
This admin grid should be accessible from the admin menu.
Should be in the following format:
SAVE
show in Homepage Product_id Product_name type SKU searchable
- yes
- no
- any
Some points about the requirement are:
- No edit/add button to this grid.
- The product collection can be saved by SAVE button after checking/unchecking the column "show in Home page". (I think this requires database table)
- The grid must be accessible from admin menu.
What files should I change to get my requirement? if not, atleast tell me which code to refer in Mage/core files.
Best Answer
Somebody had already posted the answer with a link to inchoo blog. I don't know why the user removed the answer later.
I followed the inchoo blog and made some changes as per my needs.
Make the following directory structure:
Just for example,
Add the following codes as per the paths.
app/etc/modules/{namespace}_{module}
app/code/local/{namespace}/{module}/etc/config.xml
app/code/local/{namespace}/{module}/etc/adminhtml.xml
app/code/local/{namespace}/{module}/Helper/Data.php
app/code/local/{namespace}/{module}/Block/Adminhtml/Item/Grid.php
app/code/local/{namespace}/{module}/Block/Adminhtml/Item.php
app/code/local/{namespace}/{module}/controllers/Adminhtml/ItemController.php