2014-01-09 18 views
2

我可以用Opencart的如何獲得商店的細節控制器

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

這種方式跟蹤客戶數據,以及是否有任何類似的方法來跟蹤存儲數據,如電子郵件,店名 比如:像這樣$this->store->getEmail();(這是不工作)

回答

8

使用以下:

$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 
+0

剛一說明:同樣的話可以找到其它輸入商店設置頁面,例如'$這個 - > config->獲取( 'config_country_id')' –

相關問題