-
Notifications
You must be signed in to change notification settings - Fork 115
I'm using my own module and have grid in it. How to change type of grid to "Product"? #20
Comments
Never mind, figured out |
@mit686 How did you change the type? I'm looking to do the same |
@mage-eag How can I set a grid of mine type to that of sales_order - because I am using the same collection |
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 UPDATE: |
Need to change grid type from "Other" to "Product".
Thanks in advance.
The text was updated successfully, but these errors were encountered: