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

7
  • 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
    Commented May 6, 2017 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
    Commented May 6, 2017 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
    Commented Sep 8, 2017 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
    Commented Sep 12, 2017 at 11:38
  • Er... Damn.....
    – robgt
    Commented Sep 13, 2017 at 11:17

2 Answers 2

7

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

0
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 and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.