cancel
Showing results for 
Search instead for 
Did you mean: 

how to modify collections VirtualType sales/model/resourcemodel/order/grid/collection

how to modify collections VirtualType sales/model/resourcemodel/order/grid/collection

Hi,

I have a problem. I can not get to the collection of sales/order/grid/collection. 

I want to filter the result at the start and generate a modified grid. 

In Magento 1: event/ovserver -  sales_order_grid_collection_load_before

In Magento 2 it does not work. Here are used virtualType and I do not know how to modify the collection.

Please help.

2 REPLIES 2

Re: how to modify collections VirtualType sales/model/resourcemodel/order/grid/collection

What exact filter do you need?

Re: how to modify collections VirtualType sales/model/resourcemodel/order/grid/collection

I want to use addStoreFilter() on order/grid/collection.