0

For example remove "Related Products, Up-Sells, and Cross-Sells", "Configurations" or "Schedule Design Update" etc in product edit page:

enter image description here

  • Why do you want to remove them? You could ignore them when you create a new product. In any case, I could hide them by javascript. – WaPoNe May 6 '17 at 10:30
  • It is for user experience - they don't need the above at all. Not loading it will also increase page load. – srokatonie May 6 '17 at 15:52
  • Did you resolve this issue? I would like to do the same (for some sections of this page) but the previous comments were unhelpful at best? – robgt Sep 8 '17 at 13:30
  • @robgt After hours spent on code reviewing and questions asked on official forums with no answers I had to use CSS to hide them.. – srokatonie Sep 12 '17 at 11:38
  • Er... Damn..... – robgt Sep 13 '17 at 11:17
2

You can hide these tabs ( configuration, design, search engine optimization) by using following code in ui_component xml.

app/code/Namespace/Module/view/adminhtml/ui_component/product_form.xml

<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <fieldset name="configurable">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="visible" xsi:type="boolean">false</item>
            </item>
        </argument>
    </fieldset>
    <fieldset name="design">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="visible" xsi:type="boolean">false</item>
            </item>
        </argument>
    </fieldset>
    <fieldset name="search-engine-optimization">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="visible" xsi:type="boolean">false</item>
            </item>
        </argument>
    </fieldset>
</form>

You can find fieldset name here,

enter image description here

1

override this function

public function modifyMeta(array $meta)
{
}

and use this like a way

$meta = array_replace_recursive(
$meta,
[
    'content' => [
        'arguments' => [
            'data' => [
                'config' => [
                    'label' => __('')

                ],
            ],
        ],
        'children' => [],
    ],
]
);

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.