Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

I'm using my own module and have grid in it. How to change type of grid to "Product"? #20

Closed
mit686 opened this issue Feb 5, 2013 · 4 comments
Labels

Comments

@mit686
Copy link

mit686 commented Feb 5, 2013

Need to change grid type from "Other" to "Product".

Thanks in advance.

@mit686
Copy link
Author

mit686 commented Feb 7, 2013

Never mind, figured out

@WinstonN
Copy link

@mit686 How did you change the type? I'm looking to do the same

@WinstonN
Copy link

@mage-eag How can I set a grid of mine type to that of sales_order - because I am using the same collection

@WinstonN
Copy link

Find out how to do this, so for future people wanting to do this here is a way. Not sure it's the correct one, but it works

In the folder app/code/community/BL/CustomGrid/Model/Grid/Type resides the classes you want to take a look at. In my case I looked at app/code/community/BL/CustomGrid/Model/Grid/Type/Order.php and you'll see isAppliableToGrid method. I suggest overriding this class and adding your logick

In particular a feature that might be helpful, is to allow module developers to put their block type into an admin field and select the type of block they want to assign that too
I'll try to find the time to make a prototype and submit a pull request

UPDATE:
For the correct method to do this see this comment
#166 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants