Skip to content

How can I set the value of a Yes/No Config field based on the value selected in another yes/no field in Magento 2 system.xml

I have a system.xml which has 2 yes/no fields. <field id=”popup” translate=”label” type=”select” sortOrder=”1″ > <label>Pop Up</label> <source_model>MagentoConfigModelConfigSourceYesno</source_model> </field> <field id=”embed” translate=”label” type=”select” sortOrder=“2” > <label>Embed</label> <source_model>MagentoConfigModelConfigSourceYesno</source_model> </field> If popup is set to yes I want to automatically set embed… Read More »How can I set the value of a Yes/No Config field based on the value selected in another yes/no field in Magento 2 system.xml

Import is not working (Static attribute)

I’m trying to update some products using the import file. I Realized that one attribute is not updating. I noticed this attributes is backend_type = static. This is related to the problem or can be something else? Thanks!

How to override some files

I’m trying to override the next files: vendor/magento/module-backend/Block/Dashboard/Sales.php vendor/magento/module-reports/Model/ResourceModel/Order/Collection.php What path I need to create in a Module to override those files? I tried app/code/Vendor/Module/Block/Dashboard/Sales.php app/code/Vendor/Module/Magento_Backend/Block/Dashboard/Sales.php app/code/Vendor/Module/Model/ResourceModel/Order/Collection.php app/code/Vendor/Module/Model/Magento_Reports/ResourceModel/Order/Collection.php none work. Thanks