The script apply_settings fised to support store-specific and website-specific settings