Gayan
Gayan

Reputation: 2935

OpenCart How to get store details to controller

I can track customer data using

   $this->customer->getFirstName();
   $this->customer->getLastName();
   $this->customer->getEmail();

this way,and is there any similar way to track store data like email, store name eg: like this $this->store->getEmail(); (this is not working)

Upvotes: 4

Views: 5936

Answers (1)

Sankar V
Sankar V

Reputation: 4128

Use the following:

$this->config->get('config_name'); // store name
$this->config->get('config_title'); // store title
$this->config->get('config_owner'); // store owner name
$this->config->get('config_email'); // store email

Upvotes: 12

Related Questions