Page 1 of 1

Getting variables from admin controller

Posted: Tue Oct 11, 2011 2:41 am
by Gui Siani
Hey, hi!

I have a doubt.. i need to get variables from controller arquives. How are the value transfering of the controller arquives for catalog?

i created this:

Code: Select all

if (isset($this->request->post['desconto_valor'])) {
	$this->data['desconto_valor'] = $this->request->post['desconto_valor'];
} else {
	$this->data['desconto_valor'] = 0;
}	
Where does my variable go? For what arquive?

Re: Getting variables from admin controller

Posted: Tue Oct 11, 2011 9:49 pm
by Gui Siani
Nice, i get it with this line on catalog/controller/product.php

Code: Select all

$this->data['parcela'] = $this->config->get('desconto_parcelas');
I didn't know that the values are save automatic for the DB. Day a day i'm loving more and more this online store system.

Thanks Daniel and all of the group of project!