Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCart How to get store details to controller

Tags:

php

opencart

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)

like image 902
Mak Avatar asked Dec 15 '22 02:12

Mak


1 Answers

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
like image 136
Sankar V Avatar answered Dec 17 '22 16:12

Sankar V