Php 使用opencart获取多店铺设置的店铺ID

Php 使用opencart获取多店铺设置的店铺ID,php,opencart,Php,Opencart,我们建立了一个多商店,我想为每个商店稍微更改一下模板。我仔细查看了已有的代码,发现了以下内容: $this->config->get('config_store_id') $this->load->model('setting/store'); $results = $this->model_setting_store->getStores(); $this->model_setting_setting->getSetting('config'

我们建立了一个多商店,我想为每个商店稍微更改一下模板。我仔细查看了已有的代码,发现了以下内容:

$this->config->get('config_store_id')

$this->load->model('setting/store');
$results = $this->model_setting_store->getStores();

$this->model_setting_setting->getSetting('config', $order_info['store_id']);
第一行只返回默认的存储ID。即使我们没有订单详细信息,我也希望它能正常工作


获取门店ID最可靠的方法是什么?

当前门店ID位于
$this->config->get('config\u store\u ID')

它在
index.php
文件中被更改为该代码中的正确存储ID

if ($store_query->num_rows) {
    $config->set('config_store_id', $store_query->row['store_id']);
} else {
    $config->set('config_store_id', 0);
}

我以前测试这个的时候不确定是什么问题。谢谢,我也有同样的问题。你知道解决方案吗,还是它只是自动解决的?我不确定到底是什么问题,我只是使用了
$this->config->get('config\u store\u id')