1

I want to find out which files are used to render This advance inventory pop up from the catalog product edit option? and stock status option where are those values coming from? enter image description here

1 Answer 1

1

This form is defined in the vendor/magento/module-catalog-inventory/view/adminhtml/ui_component/product_form.xml

Data Source for it is defined in the vendor/magento/module-catalog/view/adminhtml/ui_component/product_form.xml:

<dataSource name="product_form_data_source">
    <argument name="data" xsi:type="array">
        <item name="js_config" xsi:type="array">
            <item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>
        </item>
    </argument>
    <dataProvider class="Magento\Catalog\Ui\DataProvider\Product\Form\ProductDataProvider" name="product_form_data_source">
        <settings>
            <requestFieldName>id</requestFieldName>
            <primaryFieldName>entity_id</primaryFieldName>
        </settings>
    </dataProvider>
</dataSource>

so data comes from the Magento\Catalog\Ui\DataProvider\Product\Form\ProductDataProvider class.

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.