New input field in store information section
I need new data field in store information section, like I show in image below.
I tried this tutorial, but it does not work.
magento-1.9 adminhtml custom-field
add a comment |
I need new data field in store information section, like I show in image below.
I tried this tutorial, but it does not work.
magento-1.9 adminhtml custom-field
Check magento log file for error.
– Dhiren Vasoya
Jan 4 '17 at 13:30
add a comment |
I need new data field in store information section, like I show in image below.
I tried this tutorial, but it does not work.
magento-1.9 adminhtml custom-field
I need new data field in store information section, like I show in image below.
I tried this tutorial, but it does not work.
magento-1.9 adminhtml custom-field
magento-1.9 adminhtml custom-field
edited 9 mins ago
Pang
11715
11715
asked Jan 4 '17 at 13:09
user3088867user3088867
134
134
Check magento log file for error.
– Dhiren Vasoya
Jan 4 '17 at 13:30
add a comment |
Check magento log file for error.
– Dhiren Vasoya
Jan 4 '17 at 13:30
Check magento log file for error.
– Dhiren Vasoya
Jan 4 '17 at 13:30
Check magento log file for error.
– Dhiren Vasoya
Jan 4 '17 at 13:30
add a comment |
1 Answer
1
active
oldest
votes
You can do it by overriding the system.xml
/app/code/core/Mage/Core/etc/system.xml
For this create a basic module
app/etc/modules/Arunendra_Pratap.xml
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<active>true</active>
<codePool>local</codePool>
</Arunendra_Pratap>
</modules>
</config>
app/code/local/Arunendra/Pratap/etc/config.xml - the configuration file
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<version>0.0.1</version>
</Arunendra_Pratap>
</modules>
</config>
app/etc/local/Arunendra/Pratap/etc/system.xml
<?xml version="1.0"?>
<config>
<sections>
<general>
<groups>
<store_information>
<fields>
<custom_field translate="label">
<label>Your custom label</label>
<frontend_type>textarea</frontend_type>
<sort_order>40</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</custom_field>
</fields>
</store_information>
</groups>
</general>
</sections>
</config>
Finally get the date from below code.
Mage::getStoreConfig('general/store_information/custom_field');
{{config path="general/store_information/custom_field"}}
in a static block doesn't seem to display the value. Any solution?
– Ejaz
Apr 13 '18 at 18:42
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%2f153115%2fnew-input-field-in-store-information-section%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can do it by overriding the system.xml
/app/code/core/Mage/Core/etc/system.xml
For this create a basic module
app/etc/modules/Arunendra_Pratap.xml
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<active>true</active>
<codePool>local</codePool>
</Arunendra_Pratap>
</modules>
</config>
app/code/local/Arunendra/Pratap/etc/config.xml - the configuration file
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<version>0.0.1</version>
</Arunendra_Pratap>
</modules>
</config>
app/etc/local/Arunendra/Pratap/etc/system.xml
<?xml version="1.0"?>
<config>
<sections>
<general>
<groups>
<store_information>
<fields>
<custom_field translate="label">
<label>Your custom label</label>
<frontend_type>textarea</frontend_type>
<sort_order>40</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</custom_field>
</fields>
</store_information>
</groups>
</general>
</sections>
</config>
Finally get the date from below code.
Mage::getStoreConfig('general/store_information/custom_field');
{{config path="general/store_information/custom_field"}}
in a static block doesn't seem to display the value. Any solution?
– Ejaz
Apr 13 '18 at 18:42
add a comment |
You can do it by overriding the system.xml
/app/code/core/Mage/Core/etc/system.xml
For this create a basic module
app/etc/modules/Arunendra_Pratap.xml
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<active>true</active>
<codePool>local</codePool>
</Arunendra_Pratap>
</modules>
</config>
app/code/local/Arunendra/Pratap/etc/config.xml - the configuration file
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<version>0.0.1</version>
</Arunendra_Pratap>
</modules>
</config>
app/etc/local/Arunendra/Pratap/etc/system.xml
<?xml version="1.0"?>
<config>
<sections>
<general>
<groups>
<store_information>
<fields>
<custom_field translate="label">
<label>Your custom label</label>
<frontend_type>textarea</frontend_type>
<sort_order>40</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</custom_field>
</fields>
</store_information>
</groups>
</general>
</sections>
</config>
Finally get the date from below code.
Mage::getStoreConfig('general/store_information/custom_field');
{{config path="general/store_information/custom_field"}}
in a static block doesn't seem to display the value. Any solution?
– Ejaz
Apr 13 '18 at 18:42
add a comment |
You can do it by overriding the system.xml
/app/code/core/Mage/Core/etc/system.xml
For this create a basic module
app/etc/modules/Arunendra_Pratap.xml
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<active>true</active>
<codePool>local</codePool>
</Arunendra_Pratap>
</modules>
</config>
app/code/local/Arunendra/Pratap/etc/config.xml - the configuration file
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<version>0.0.1</version>
</Arunendra_Pratap>
</modules>
</config>
app/etc/local/Arunendra/Pratap/etc/system.xml
<?xml version="1.0"?>
<config>
<sections>
<general>
<groups>
<store_information>
<fields>
<custom_field translate="label">
<label>Your custom label</label>
<frontend_type>textarea</frontend_type>
<sort_order>40</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</custom_field>
</fields>
</store_information>
</groups>
</general>
</sections>
</config>
Finally get the date from below code.
Mage::getStoreConfig('general/store_information/custom_field');
You can do it by overriding the system.xml
/app/code/core/Mage/Core/etc/system.xml
For this create a basic module
app/etc/modules/Arunendra_Pratap.xml
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<active>true</active>
<codePool>local</codePool>
</Arunendra_Pratap>
</modules>
</config>
app/code/local/Arunendra/Pratap/etc/config.xml - the configuration file
<?xml version="1.0"?>
<config>
<modules>
<Arunendra_Pratap>
<version>0.0.1</version>
</Arunendra_Pratap>
</modules>
</config>
app/etc/local/Arunendra/Pratap/etc/system.xml
<?xml version="1.0"?>
<config>
<sections>
<general>
<groups>
<store_information>
<fields>
<custom_field translate="label">
<label>Your custom label</label>
<frontend_type>textarea</frontend_type>
<sort_order>40</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</custom_field>
</fields>
</store_information>
</groups>
</general>
</sections>
</config>
Finally get the date from below code.
Mage::getStoreConfig('general/store_information/custom_field');
edited Jan 4 '17 at 13:51
Marius♦
167k28319684
167k28319684
answered Jan 4 '17 at 13:46
ArunendraArunendra
6,21831842
6,21831842
{{config path="general/store_information/custom_field"}}
in a static block doesn't seem to display the value. Any solution?
– Ejaz
Apr 13 '18 at 18:42
add a comment |
{{config path="general/store_information/custom_field"}}
in a static block doesn't seem to display the value. Any solution?
– Ejaz
Apr 13 '18 at 18:42
{{config path="general/store_information/custom_field"}}
in a static block doesn't seem to display the value. Any solution?– Ejaz
Apr 13 '18 at 18:42
{{config path="general/store_information/custom_field"}}
in a static block doesn't seem to display the value. Any solution?– Ejaz
Apr 13 '18 at 18:42
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%2f153115%2fnew-input-field-in-store-information-section%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
Check magento log file for error.
– Dhiren Vasoya
Jan 4 '17 at 13:30