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


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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.