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;
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
|
show 1 more comment
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
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
|
show 1 more comment
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
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
ce-1.7.0.2 email-templates
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
|
show 1 more comment
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
|
show 1 more comment
2 Answers
2
active
oldest
votes
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
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
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
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jul 9 at 19:12
BrianBrian
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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