0

Inside admin from

Storage->Configuration->Sales->Shipping Method -> Free Shipping -> "Minimum Amount Value"

I want to get this textbox value in phtml file. so how i can get that?

1 Answer 1

0
protected $scopeConfig;

public function __construct(
    \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
    \Psr\Log\LoggerInterface $logger
){
    $this->scopeConfig = $scopeConfig;
    $this->logger = $logger;
}

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

you will get minimum order amount of free shipping method.

2
  • Hello Abhishek, i want to get that value in any phtml file inside a block file it's working fine. Thanks for reply Sep 28, 2017 at 5:55
  • You can call it inside helper and that helper function will work in any phtml file Sep 28, 2017 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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