I'm creating a custom module(multi-vendor) where i need to create one feature where admin can export the product details(CSV) data along with vendor details (which is assigned to some specific product).

I have all the tables available working only trucked in this feature...

find the points below I want to achieve..

1. Export product & sales details for the selected vendor

2. Export Vendor/Vendors for selected products with sales


Sorry for late reply but I hope it will help someone else In Magento 2 its quite simple. (refer to sales/order module) in your ui component you need exportButton under container name="listing_top"

     <exportButton name="export_button">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="selectProvider" xsi:type="string">sales_order_grid.sales_order_grid.sales_order_columns.ids</item>

updates sales_order_grid by your module keywords and the export is done

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.