-
Usuwanie sekcji Sources z widoku produktu w panelu administracyjnym
Tworzymy własny moduł, a następnie w ścieżce /html/app/code/Vendor/Module/view/adminhtml/ui_component/product_form.xml dodajemy kod jak poniżej. <?xml version=”1.0″ encoding=”UTF-8″?> <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <fieldset name=”sources” component=”Magento_InventoryCatalogAdminUi/js/product/form/source-items”> <dynamicRows name=”assigned_sources”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”visible” xsi:type=”boolean”>false</item> </item> </argument> </dynamicRows> </fieldset> </form> Zmiana pozwoli ukryć całą zakładkę Sources (stany magazynowe z MSI) dla wszystkich użytkowników.
