Skip to content

Magento 2 Custom Module – Adding Category IDs programatically

system.xml file <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Config:etc/system_file.xsd”> <system> <section id=”specials_subcategory” translate=”label” sortOrder=”1″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <class>separator-top</class> <label>Category Specials</label> <tab>ThreeYearOrders</tab> <resource>Gelmar_SpecialsSubCategory::config</resource> <group id=”general” translate=”label” type=”text” sortOrder=”110″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <label>Settings</label> <field id=”run_specials_logic” translate=”label” type=”button” sortOrder=”2″ showInDefault=”1″ showInWebsite=”0″ showInStore=”0″> <label>Update Category Specials</label>… Read More »Magento 2 Custom Module – Adding Category IDs programatically