Magneto 1 Want to show some products same as Related products in catalog product edit

I have created custom tab with products in Catalog >> Product >> Edit But want to apply same grid functionality like related products including remove products. Tabs.php (Vendor/ModuleName/Block/Adminhtml/Catalog/Product/Tabs.php) <?php /** * Class N98_ARA_Block_Adminhtml_Catalog_Product_Tabs */ class N98_ARA_Block_Adminhtml_Catalog_Product_Tabs extends Mage_Adminhtml_Block_Widget_Grid implements Mage_Adminhtml_Block_Widget_Tab_Interface { /** * Set the template for the block * */ public function _construct() {…

M2 – Create function in module

I have a piece of code that I need to use multiple times, but I don’t want to get a very long page with a lot of the same code. I have this piece of code: <div class=”av-product-specs-list-container”> <input type=”checkbox” id=”chck1″ checked> <label class=”av-product-specs-title” for=”chck1″>Algemene informatie</label> <div class=”av-product-specs-table-list first-spec-list”> <?php if( $av_merk != “” )…

Custom category value wont save

Ive got a custom category value, it is displaying on the backend but it is not saving when i click save, it just goes back to the default value! here is my adminhtml/ui_component/category_form.xml <?xml version=”1.0″?> <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <fieldset name=”display_settings”> <field name=”category_front_label”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”dataType” xsi:type=”string”>boolean</item> <item name=”formElement” xsi:type=”string”>checkbox</item> <item…