Post by project » Mon Oct 21, 2013 3:56 am

Hello guys,
lets supose i am on the product template, and i want to add a config setting (in the setting table). How can i do this??

If i was in a module i would use the following in order to add the setting in the setting table:

Code: Select all

if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
			$this->model_setting_setting->editSetting($this->_name, $this->request->post);		
					
			$this->session->data['success'] = $this->language->get('text_success');
						
			$this->redirect($this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL'));
		}
but the editSetting is waiting for an array.

What should i use to add a single config setting outside a module??

Thank you


Thank you

New member

Posts

Joined
Tue May 22, 2012 6:20 pm
Location - Greece

Post by project » Thu Oct 24, 2013 4:09 am

Anyone??

New member

Posts

Joined
Tue May 22, 2012 6:20 pm
Location - Greece
Who is online

Users browsing this forum: No registered users and 35 guests