5

I understand that you can set default store config values by using the syntax

<default>
 <path>
 <to>
 <config>value</config>
 </to>
 </path>
</default>

but i am also pretty certain that it is possible to set default values for individual store views in config.xml also . Without the need to set manually in admin or by using an upgrade script.

Is it possible?

I have tried

<storecode>
 <path>
 <to>
 <config>value</config>
 </to>
 </path>
</storecode>

but that didnt work

David Manners
27.3k9 gold badges78 silver badges220 bronze badges
asked May 1, 2014 at 15:32
1

2 Answers 2

5

As the answer in this stackoverflow question says you need some another node surrounding your code. When you wrap your code with <stores> and then it will work.

<default>
 <some>
 <config>
 <value>default</value>
 </config>
 </some>
</default>
<stores>
 <your_store_code>
 <some>
 <config>
 <value>something</value>
 </config>
 </some>
 </your_store_code>
</stores>
answered May 1, 2014 at 18:24
5

The same is also possible for websites:

<websites>
 <your_website_code>
 <some>
 <config>
 <value>something</value>
 </config>
 </some>
 </your_website_code>
</websites>
answered May 30, 2014 at 10:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.