Magento2 How to get data from system configuration.

We can get Core config data table value programmatically using below way,

Now call in a function,

Where sectionId/groupId/fieldId is from etc/adminhtml/system.xml section,group and field XML tag id.

In our case test/origin/postcode is the key value for sectionId/groupId/fieldId.

Leave a Reply

Your email address will not be published. Required fields are marked *