In this post I am going to explain how to get system configuration value in phtml file in Magento 2. You can get system configuration field value programatically as below. Add below code snippet in Block class. protected $scopeConfig; public function __construct( \Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, array $data = [] ) { $this->scopeConfig = $scopeConfig;…


Recent Comments