Post by Gui Siani » Tue Oct 11, 2011 2:41 am

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?

New member

Posts

Joined
Tue Jul 12, 2011 1:48 am

Post by Gui Siani » Tue Oct 11, 2011 9:49 pm

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!

New member

Posts

Joined
Tue Jul 12, 2011 1:48 am
Who is online

Users browsing this forum: Google [Bot] and 99 guests