Skip to main content
deleted 1 character in body
Source Link
Hitesh Balpande
  • 1.9k
  • 2
  • 27
  • 72
    protected $_scopeConfig;
 
    public function __construct(
    \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
            $this->_scopeConfig = $scopeConfig;
    }
    
    $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
    $this->_scopeConfig->getValue("section_id/group_id/field_id", $storeScope);

section_id, group_id, field_id values you can find fromin etc/adminhtml/system.xml file from youpath in your custom  / (default vendor) Module

    protected $_scopeConfig;
 
    public function __construct(
    \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
            $this->_scopeConfig = $scopeConfig;
    }
    
    $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
    $this->_scopeConfig->getValue("section_id/group_id/field_id", $storeScope);

section_id, group_id, field_id values you can find from etc/adminhtml/system.xml file from you custom/default vendor Module

    protected $_scopeConfig;
 
    public function __construct(
    \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
            $this->_scopeConfig = $scopeConfig;
    }
    
    $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
    $this->_scopeConfig->getValue("section_id/group_id/field_id", $storeScope);

section_id, group_id, field_id values you can find in etc/adminhtml/system.xml path in your custom  / (default vendor) Module

added 19 characters in body
Source Link
Hitesh Balpande
  • 1.9k
  • 2
  • 27
  • 72
    protected $_scopeConfig;
 
    public function __construct(
    \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
            $this->_scopeConfig = $scopeConfig;
    }
    
    $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
    $this->scopeConfig>_scopeConfig->getValue("section_id/group_id/field_id", $storeScope);

section_id, group_id, field_id values you can find from etc/adminhtml/system.xml file from you custom/default vendor Module

protected $_scopeConfig;
 
    public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
        $this->_scopeConfig = $scopeConfig;
    }
    
    $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
    $this->scopeConfig->getValue("section_id/group_id/field_id", $storeScope);

section_id, group_id, field_id values you can find from etc/adminhtml/system.xml file from you custom/default vendor Module

    protected $_scopeConfig;
 
    public function __construct(
    \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
            $this->_scopeConfig = $scopeConfig;
    }
    
    $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
    $this->_scopeConfig->getValue("section_id/group_id/field_id", $storeScope);

section_id, group_id, field_id values you can find from etc/adminhtml/system.xml file from you custom/default vendor Module

Source Link
Hitesh Balpande
  • 1.9k
  • 2
  • 27
  • 72

protected $_scopeConfig;
 
    public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
        $this->_scopeConfig = $scopeConfig;
    }
    
    $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
    $this->scopeConfig->getValue("section_id/group_id/field_id", $storeScope);

section_id, group_id, field_id values you can find from etc/adminhtml/system.xml file from you custom/default vendor Module