Skip to main content

i have overwritten the Related.php file but nothing happen

app/code/Vendor/Module/etc/di.xml

<preference for="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related" type="Vendor\Module\Ui\DataProvider\Product\Form\Modifier\Related" />

app/code/Vendor/Module/Ui/DataProvider/Product/Form/Modifier/Related.php

namespace Vendor\Module\Ui\DataProvider\Product\Form\Modifier;

class Related extends \Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related {

namespace Vendor\Module\Ui\DataProvider\Product\Form\Modifier;

class Related extends \Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related
    {

     public function modifyMeta(array $meta)
     { 
       echo "test"; die;
     }
  }
?>

} ?>

Please help this issue.

i have overwritten the Related.php file but nothing happen

app/code/Vendor/Module/etc/di.xml

<preference for="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related" type="Vendor\Module\Ui\DataProvider\Product\Form\Modifier\Related" />

app/code/Vendor/Module/Ui/DataProvider/Product/Form/Modifier/Related.php

namespace Vendor\Module\Ui\DataProvider\Product\Form\Modifier;

class Related extends \Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related {

 public function modifyMeta(array $meta)
 { 
   echo "test"; die;
 }

} ?>

Please help this issue.

i have overwritten the Related.php file but nothing happen

app/code/Vendor/Module/etc/di.xml

<preference for="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related" type="Vendor\Module\Ui\DataProvider\Product\Form\Modifier\Related" />

app/code/Vendor/Module/Ui/DataProvider/Product/Form/Modifier/Related.php

namespace Vendor\Module\Ui\DataProvider\Product\Form\Modifier;

class Related extends \Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related
    {

     public function modifyMeta(array $meta)
     { 
       echo "test"; die;
     }
  }
?>

Please help this issue.

deleted 18 characters in body
Source Link

i have overwritten the Related.php file but nothing happen

app/code/Vendor/Module/etc/di.xml

<preference for="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related" type="Vendor\Module\Ui\DataProvider\Product\Form\Modifier\Related" />

app/code/Vendor/Module/Ui/DataProvider/Product/Form/Modifier/Related.php

namespace Vendor\Module\Ui\DataProvider\Product\Form\Modifier;

class Related extends \Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related {

 public function modifyMeta(array $meta)
 { 
   echo "test"; die;
 }

} ?>

Please help this issue.

i have overwritten the Related.php file but nothing happen

app/code/Vendor/Module/etc/di.xml

<preference for="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related" type="Vendor\Module\Ui\DataProvider\Product\Form\Modifier\Related" />

app/code/Vendor/Module/Ui/DataProvider/Product/Form/Modifier/Related.php

i have overwritten the Related.php file but nothing happen

app/code/Vendor/Module/etc/di.xml

<preference for="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related" type="Vendor\Module\Ui\DataProvider\Product\Form\Modifier\Related" />

app/code/Vendor/Module/Ui/DataProvider/Product/Form/Modifier/Related.php

namespace Vendor\Module\Ui\DataProvider\Product\Form\Modifier;

class Related extends \Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related {

 public function modifyMeta(array $meta)
 { 
   echo "test"; die;
 }

} ?>

Please help this issue.

Source Link

Magento 2 : How to change the cross sell text in product Edit page

i have overwritten the Related.php file but nothing happen

app/code/Vendor/Module/etc/di.xml

<preference for="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Related" type="Vendor\Module\Ui\DataProvider\Product\Form\Modifier\Related" />

app/code/Vendor/Module/Ui/DataProvider/Product/Form/Modifier/Related.php