How to Expose system configuration value to be used in CMS Pages/Blocks or email template
Expose system configuration value to be used in CMS Pages/Blocks or email template
as an example we will use this configuration "Delivery Methods / Free Shipping / Minimum Order Amount"
after you create a new module you will need to add this code to di.xml
<type name="Magento\Variable\Model\Config\Structure\AvailableVariables">
<arguments>
<argument name="configPaths" xsi:type="array">
<item name="carriers/freeshipping" xsi:type="array">
<item name="carriers/freeshipping/free_shipping_subtotal" xsi:type="string">1</item>
</item>
</argument>
</arguments>
</type>
then execute this command
php bin/magento setup:di:compile