Timeline for Magento 2 - How to get the extension's configuration values in the phtml files?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 15, 2019 at 8:02 | comment | added | fmsthird |
@Dmitry I think you still need to inject \Magento\Framework\App\Config\ScopeConfigInterface in helper's constructor
|
|
Feb 22, 2016 at 19:05 | comment | added | Philip Deatherage | How would this work with a default config value? I'm trying to figure out how to get the phone number set in the store config and display it in the header.phtml | |
Dec 15, 2015 at 22:12 | comment | added | scrowler | Thanks for pointing out that the ScopeConfigInterface is available from the abstract helper class! Saved me redefining it. | |
Sep 28, 2015 at 14:01 | vote | accept | John | ||
Sep 28, 2015 at 13:52 | history | answered | skynetch | CC BY-SA 3.0 |