I've tried to bring Sales -> Shipments grid into my extension. It works fine when I use this in my layout file .xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="styles"/>
        <referenceContainer name="content">
            <uiComponent name="sales_order_shipment_grid"/>

But there is a problem. I need to add some more columns to the grid in my extension, but I don't want those columns to be appeared in Sales -> Shipments grid.

I've tried the solution in this link to add new column to the grid How to add new column to core module of admin grid in Magento2

But those columns appear in both places (which I don't want to)

I think the best solution here should be some kind of mechanism to "extends the core ui component", but I don't know how can do this in Magento 2.

How can I do this?

Thank you.

  • I have this exact issue. Did you find a solution (3 years ago...!)? – Geat Aug 23 at 17:24
  • 1
    @Geat: sorry, I haven't worked with Magento for a long time. I can't remember if I solved this problem then :) – Hoang Trinh Aug 24 at 4:16
  • You're very lucky! – Geat Aug 26 at 19:02
  • 1
    @Geat : one of the best things in my life is that I left using Magento, once and forever, lol – Hoang Trinh Aug 27 at 2:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.