0

We have created a custom link type products like related at admin end & we created custom link_title for the table catalog_product_link to save the custom titles.

By custom import, we are able to save the custom titles in the catalog_product_link table. But the problem is if the admin user saves the product at the admin end the respected link type records are being deleted and recreated by the default behavior of Magento2.

There is a file vendor/magento/module-catalog/Model/Product/Link/SaveHandler.php:: execute() which has been triggering after saving product and which is responsible for saving links.

How to overcome this issue.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.