Skip to content

Instantly share code, notes, and snippets.

@magevision
Created March 30, 2022 11:46
Show Gist options
  • Save magevision/cecd8f306604040ffa60b135abfa1234 to your computer and use it in GitHub Desktop.
Save magevision/cecd8f306604040ffa60b135abfa1234 to your computer and use it in GitHub Desktop.
GetConfigValueInsideEmailTemplate
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="general">
<group id="store_information">
<field id="custom_store_config" translate="label" type="text" sortOrder="65" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Custom Store Config</label>
</field>
</group>
</section>
</system>
</config>
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Variable\Model\Config\Structure\AvailableVariables">
<arguments>
<argument name="configPaths" xsi:type="array">
<item name="general/store_information" xsi:type="array">
<item name="general/store_information/custom_store_config" xsi:type="string">1</item>
</item>
</argument>
</arguments>
</type>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment