Skip to main content
added 16 characters in body
Source Link
Sanjay Jethva
  • 756
  • 4
  • 21
  • 40
  1. Vendor\Extension\view\adminhtml\layout\catalog_product_edit.xml

  2. Vendor\Extension\view\adminhtml\web\js\custom_product_edit.js

    require([ 'jquery', ], function ($) { 'use strict'; $(document).ready(function(){ $(document).ajaxStop(function () { $('input[name="product[name]"]').after("Product Link"); });

     });
    

    });

Create Vendor\Extension\view\adminhtml\layout\catalog_product_edit.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <script src="Vendor_Extension::js/custom_product_edit.js"/>
    </head>
</page>

Create Vendor\Extension\view\adminhtml\web\js\custom_product_edit.js

require([
    'jquery',
], function ($) {
    'use strict';
    $(document).ready(function(){
        $(document).ajaxStop(function () {
            $('input[name="product[name]"]').after("<a href='#'>Product Link</a>");
        });

    });
})

;

  1. Vendor\Extension\view\adminhtml\layout\catalog_product_edit.xml

  2. Vendor\Extension\view\adminhtml\web\js\custom_product_edit.js

    require([ 'jquery', ], function ($) { 'use strict'; $(document).ready(function(){ $(document).ajaxStop(function () { $('input[name="product[name]"]').after("Product Link"); });

     });
    

    });

Create Vendor\Extension\view\adminhtml\layout\catalog_product_edit.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <script src="Vendor_Extension::js/custom_product_edit.js"/>
    </head>
</page>

Create Vendor\Extension\view\adminhtml\web\js\custom_product_edit.js

require([
    'jquery',
], function ($) {
    'use strict';
    $(document).ready(function(){
        $(document).ajaxStop(function () {
            $('input[name="product[name]"]').after("<a href='#'>Product Link</a>");
        });

    });
})

;

Source Link
Sanjay Jethva
  • 756
  • 4
  • 21
  • 40

  1. Vendor\Extension\view\adminhtml\layout\catalog_product_edit.xml

  2. Vendor\Extension\view\adminhtml\web\js\custom_product_edit.js

    require([ 'jquery', ], function ($) { 'use strict'; $(document).ready(function(){ $(document).ajaxStop(function () { $('input[name="product[name]"]').after("Product Link"); });

     });
    

    });