Skip to main content
4 of 6
deleted 74 characters in body
Nagaraju Kasa
  • 5.9k
  • 8
  • 58
  • 114

magento 2 how to add custom methods to product.php?

How to add custom set and get Methods for the product.php from our custom module ?

For example:-

public function getChildernData();
public function setChildernData();
          

I have tried in magento 2.2.1 version in the vendor files as mentioned below

/vendor/magento/module-catalog/Api/Data/ProductInterface.php

/vendor/magento/module-catalog/Model/Product.php
Nagaraju Kasa
  • 5.9k
  • 8
  • 58
  • 114