Get custom config value in transactional emailTransactional Email ListHow to get current custom transactional email template IDInclude Image in Transactional EmailTransactional email templates not loadingGet customer first name on review request transactional emailWrong email body in transactional emailTranslating Transactional Email Magento2Transactional Email template size limitMagento 2. Get value from config inside email templateHow to get newsletter subscribers email id in transactional email templates in magento 1.9

Is it possible to have a career in SciComp without contributing to arms research?

What are the basics of commands in Minecraft Java Edition?

Last-minute canceled work-trip mean I'll lose thousands of dollars on planned vacation

How to draw a winding on a toroid of a circular cross section?

How would thermophilic fish survive?

Time signature inconsistent

Strategy to pay off revolving debt while building reserve savings fund?

"This used to be my phone number"

How to tell the object type of an Attachment

Difference between c++14 and c++17 using: `*p++ = *p`

Company looks for long-term employees, but I know I won't be interested in staying long

Zhora asks Deckard: "Are you for real?". Was this meant to be significant?

How to not confuse readers with simultaneous events?

Locked-up DOS computer beeped on keypress. What mechanism caused that?

What did Jeremy Hunt mean by "slipped" to miss a vote?

Which modern firearm should a time traveler bring to be easily reproducible for a historic civilization?

Why is the Intel 8086 CPU called a 16-bit CPU?

Why aren't there any women super GMs?

Why teach C using scanf without talking about command line arguments?

May I use a railway velocipede on used British railways?

Did Hitler say this quote about homeschooling?

Why does a tetrahedral molecule like methane have a dipole moment of zero?

How would you say "Sorry, that was a mistake on my part"?

Is it possible to have two words with the same particle in a sentence?



Get custom config value in transactional email


Transactional Email ListHow to get current custom transactional email template IDInclude Image in Transactional EmailTransactional email templates not loadingGet customer first name on review request transactional emailWrong email body in transactional emailTranslating Transactional Email Magento2Transactional Email template size limitMagento 2. Get value from config inside email templateHow to get newsletter subscribers email id in transactional email templates in magento 1.9






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















Is it possible to get a custom config value in transactional email template?



Unfortunately the following doesn't work:



config path='extraconfig_options/emailsettings/primarycolor'


Our system.xml looks like:



<?xml version="1.0"?>
<config>
<tabs>
<extraconfig translate="label" module="extraconfig">
<label>Label</label>
<sort_order>1</sort_order>
</extraconfig>
</tabs>
<sections>
<extraconfig_options translate="label" module="extraconfig">
<label>Extra Config</label>
<tab>extraconfig</tab>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<emailsettings translate="label">
<label>Transactional Email Settings</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<primarycolor>
<label>Primary Color</label>
<frontend_type>text</frontend_type>
<validate>color</validate>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</primarycolor>
<secondarycolor>
<label>Secondary Color</label>
<frontend_type>text</frontend_type>
<validate>color</validate>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</secondarycolor>
</fields>
</emailsettings>
</groups>
</extraconfig_options>
</sections>
</config>









share|improve this question
























  • It should work. Just make sure the path is correct

    – Marius
    Oct 22 '13 at 13:14











  • I edited the post with the module system.xml. I believe the path is correct.

    – Michael
    Oct 22 '13 at 13:29












  • Yea..it seams ok. And in the backend do you see a value in that field? I know the question may seam stupid. but I want to make sure.

    – Marius
    Oct 22 '13 at 13:38











  • Yeah, value is there :-) Good to know, a standard configuration like config path='trans_email/ident_support/email' is working properly.

    – Michael
    Oct 22 '13 at 13:43






  • 1





    Are there any values in your core_config_data table for other store views? Which email are you currently editing?

    – Kristof at Fooman
    Oct 22 '13 at 16:15

















2















Is it possible to get a custom config value in transactional email template?



Unfortunately the following doesn't work:



config path='extraconfig_options/emailsettings/primarycolor'


Our system.xml looks like:



<?xml version="1.0"?>
<config>
<tabs>
<extraconfig translate="label" module="extraconfig">
<label>Label</label>
<sort_order>1</sort_order>
</extraconfig>
</tabs>
<sections>
<extraconfig_options translate="label" module="extraconfig">
<label>Extra Config</label>
<tab>extraconfig</tab>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<emailsettings translate="label">
<label>Transactional Email Settings</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<primarycolor>
<label>Primary Color</label>
<frontend_type>text</frontend_type>
<validate>color</validate>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</primarycolor>
<secondarycolor>
<label>Secondary Color</label>
<frontend_type>text</frontend_type>
<validate>color</validate>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</secondarycolor>
</fields>
</emailsettings>
</groups>
</extraconfig_options>
</sections>
</config>









share|improve this question
























  • It should work. Just make sure the path is correct

    – Marius
    Oct 22 '13 at 13:14











  • I edited the post with the module system.xml. I believe the path is correct.

    – Michael
    Oct 22 '13 at 13:29












  • Yea..it seams ok. And in the backend do you see a value in that field? I know the question may seam stupid. but I want to make sure.

    – Marius
    Oct 22 '13 at 13:38











  • Yeah, value is there :-) Good to know, a standard configuration like config path='trans_email/ident_support/email' is working properly.

    – Michael
    Oct 22 '13 at 13:43






  • 1





    Are there any values in your core_config_data table for other store views? Which email are you currently editing?

    – Kristof at Fooman
    Oct 22 '13 at 16:15













2












2








2








Is it possible to get a custom config value in transactional email template?



Unfortunately the following doesn't work:



config path='extraconfig_options/emailsettings/primarycolor'


Our system.xml looks like:



<?xml version="1.0"?>
<config>
<tabs>
<extraconfig translate="label" module="extraconfig">
<label>Label</label>
<sort_order>1</sort_order>
</extraconfig>
</tabs>
<sections>
<extraconfig_options translate="label" module="extraconfig">
<label>Extra Config</label>
<tab>extraconfig</tab>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<emailsettings translate="label">
<label>Transactional Email Settings</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<primarycolor>
<label>Primary Color</label>
<frontend_type>text</frontend_type>
<validate>color</validate>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</primarycolor>
<secondarycolor>
<label>Secondary Color</label>
<frontend_type>text</frontend_type>
<validate>color</validate>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</secondarycolor>
</fields>
</emailsettings>
</groups>
</extraconfig_options>
</sections>
</config>









share|improve this question
















Is it possible to get a custom config value in transactional email template?



Unfortunately the following doesn't work:



config path='extraconfig_options/emailsettings/primarycolor'


Our system.xml looks like:



<?xml version="1.0"?>
<config>
<tabs>
<extraconfig translate="label" module="extraconfig">
<label>Label</label>
<sort_order>1</sort_order>
</extraconfig>
</tabs>
<sections>
<extraconfig_options translate="label" module="extraconfig">
<label>Extra Config</label>
<tab>extraconfig</tab>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<emailsettings translate="label">
<label>Transactional Email Settings</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<primarycolor>
<label>Primary Color</label>
<frontend_type>text</frontend_type>
<validate>color</validate>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</primarycolor>
<secondarycolor>
<label>Secondary Color</label>
<frontend_type>text</frontend_type>
<validate>color</validate>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</secondarycolor>
</fields>
</emailsettings>
</groups>
</extraconfig_options>
</sections>
</config>






ce-1.7.0.2 email-templates






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 22 '13 at 13:28







Michael

















asked Oct 22 '13 at 13:11









MichaelMichael

3863 gold badges7 silver badges21 bronze badges




3863 gold badges7 silver badges21 bronze badges












  • It should work. Just make sure the path is correct

    – Marius
    Oct 22 '13 at 13:14











  • I edited the post with the module system.xml. I believe the path is correct.

    – Michael
    Oct 22 '13 at 13:29












  • Yea..it seams ok. And in the backend do you see a value in that field? I know the question may seam stupid. but I want to make sure.

    – Marius
    Oct 22 '13 at 13:38











  • Yeah, value is there :-) Good to know, a standard configuration like config path='trans_email/ident_support/email' is working properly.

    – Michael
    Oct 22 '13 at 13:43






  • 1





    Are there any values in your core_config_data table for other store views? Which email are you currently editing?

    – Kristof at Fooman
    Oct 22 '13 at 16:15

















  • It should work. Just make sure the path is correct

    – Marius
    Oct 22 '13 at 13:14











  • I edited the post with the module system.xml. I believe the path is correct.

    – Michael
    Oct 22 '13 at 13:29












  • Yea..it seams ok. And in the backend do you see a value in that field? I know the question may seam stupid. but I want to make sure.

    – Marius
    Oct 22 '13 at 13:38











  • Yeah, value is there :-) Good to know, a standard configuration like config path='trans_email/ident_support/email' is working properly.

    – Michael
    Oct 22 '13 at 13:43






  • 1





    Are there any values in your core_config_data table for other store views? Which email are you currently editing?

    – Kristof at Fooman
    Oct 22 '13 at 16:15
















It should work. Just make sure the path is correct

– Marius
Oct 22 '13 at 13:14





It should work. Just make sure the path is correct

– Marius
Oct 22 '13 at 13:14













I edited the post with the module system.xml. I believe the path is correct.

– Michael
Oct 22 '13 at 13:29






I edited the post with the module system.xml. I believe the path is correct.

– Michael
Oct 22 '13 at 13:29














Yea..it seams ok. And in the backend do you see a value in that field? I know the question may seam stupid. but I want to make sure.

– Marius
Oct 22 '13 at 13:38





Yea..it seams ok. And in the backend do you see a value in that field? I know the question may seam stupid. but I want to make sure.

– Marius
Oct 22 '13 at 13:38













Yeah, value is there :-) Good to know, a standard configuration like config path='trans_email/ident_support/email' is working properly.

– Michael
Oct 22 '13 at 13:43





Yeah, value is there :-) Good to know, a standard configuration like config path='trans_email/ident_support/email' is working properly.

– Michael
Oct 22 '13 at 13:43




1




1





Are there any values in your core_config_data table for other store views? Which email are you currently editing?

– Kristof at Fooman
Oct 22 '13 at 16:15





Are there any values in your core_config_data table for other store views? Which email are you currently editing?

– Kristof at Fooman
Oct 22 '13 at 16:15










2 Answers
2






active

oldest

votes


















2














Copy the path from the config_core_data database table and paste it/check it against your code.



Check that your value and mail is sent in the correct store view scope



After this, start digging and check the code with xdebug






share|improve this answer






























    0














    Putting this here in case it helps anyone else. Apparently, you have to grant permissions to use the newly added variable in System > Permissions > Variables. See: https://stackoverflow.com/a/36300891/8127660



    For me, after I did this, it worked. Hope this helps someone else.






    share|improve this answer

























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f9832%2fget-custom-config-value-in-transactional-email%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      Copy the path from the config_core_data database table and paste it/check it against your code.



      Check that your value and mail is sent in the correct store view scope



      After this, start digging and check the code with xdebug






      share|improve this answer



























        2














        Copy the path from the config_core_data database table and paste it/check it against your code.



        Check that your value and mail is sent in the correct store view scope



        After this, start digging and check the code with xdebug






        share|improve this answer

























          2












          2








          2







          Copy the path from the config_core_data database table and paste it/check it against your code.



          Check that your value and mail is sent in the correct store view scope



          After this, start digging and check the code with xdebug






          share|improve this answer













          Copy the path from the config_core_data database table and paste it/check it against your code.



          Check that your value and mail is sent in the correct store view scope



          After this, start digging and check the code with xdebug







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 5 '14 at 15:00









          Fabian BlechschmidtFabian Blechschmidt

          33.6k7 gold badges65 silver badges175 bronze badges




          33.6k7 gold badges65 silver badges175 bronze badges























              0














              Putting this here in case it helps anyone else. Apparently, you have to grant permissions to use the newly added variable in System > Permissions > Variables. See: https://stackoverflow.com/a/36300891/8127660



              For me, after I did this, it worked. Hope this helps someone else.






              share|improve this answer



























                0














                Putting this here in case it helps anyone else. Apparently, you have to grant permissions to use the newly added variable in System > Permissions > Variables. See: https://stackoverflow.com/a/36300891/8127660



                For me, after I did this, it worked. Hope this helps someone else.






                share|improve this answer

























                  0












                  0








                  0







                  Putting this here in case it helps anyone else. Apparently, you have to grant permissions to use the newly added variable in System > Permissions > Variables. See: https://stackoverflow.com/a/36300891/8127660



                  For me, after I did this, it worked. Hope this helps someone else.






                  share|improve this answer













                  Putting this here in case it helps anyone else. Apparently, you have to grant permissions to use the newly added variable in System > Permissions > Variables. See: https://stackoverflow.com/a/36300891/8127660



                  For me, after I did this, it worked. Hope this helps someone else.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 9 at 19:12









                  BrianBrian

                  1




                  1



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f9832%2fget-custom-config-value-in-transactional-email%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form