Post by haydent » Thu Nov 25, 2021 6:02 am

This little code will help you if you have say 6 stores that all have the same images sizes settings etc found in: admin/index.php?route=extension/extension&token=e4JUNIzLJmDdmFTYno8P5F1bXTgMhJZp&type=theme

To save you going through each one and changing the same settings, and maybe missing a setting, this code will, when you edit and save one save that same settings to all other stores.

Edit: admin/controller/extension/theme/theme_default.php

change this:

Code: Select all

            $this->model_setting_setting->editSetting('theme_default', $this->request->post, $this->request->get['store_id']);
to this

Code: Select all

		//write one to all
		$stores = $this->model_setting_store->getStores();
		$this->model_setting_setting->editSetting('theme_default', $this->request->post, 0);
		foreach($stores as $store){
			$this->model_setting_setting->editSetting('theme_default', $this->request->post, $store['store_id']);
		//write one to all

User avatar
New member


Wed Nov 09, 2011 9:50 am
Location - Sydney, Australia
Who is online

Users browsing this forum: No registered users and 1 guest