How can I programatically check free shipping is active or not in Magento 2?

1 Answer 1


If you want to check free shipping is Enabled from admin, you can use below code

$this->scopeConfig->getValue('carriers/freeshipping/active', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.