0

I have a magento website having three websites: web1, web2 & web3

I need to set all system configuration values from web2 to another new website web3 but web1 should not be affected.

If any one have easiest possible way to do this. Please share

asked Aug 11, 2016 at 9:19

1 Answer 1

1

First run: select * from core_config_data where scope='stores' and scope_id=<id_of_web2>;

By this you will get all configuration rows for web2.

Hold result in a php variable, say $result. Now use:

foreach($result as $value){
// Now check any configuration path exists for web3, if yes, then update
// if no, then use value of web2's configuration and insert a new row for path with value for web3
}
answered Aug 11, 2016 at 9:33

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.