Opencart 如何在所有页面上添加商店名称?

Opencart 如何在所有页面上添加商店名称?,opencart,title,opencart-3,Opencart,Title,Opencart 3,在opencart 3.0.2.0中,如何将我的店铺名称添加到所有页面(产品、制造商、信息等) 感谢您$this->config->get('config_name')-name of store如果您试图将页面标题编辑为以下内容: 您的店铺-产品名称 编辑此文件: catalog\controller\product\product.php $this->document->setTitle($product_info['meta_title']); $this->doc

在opencart 3.0.2.0中,如何将我的店铺名称添加到所有页面(产品、制造商、信息等)


感谢您

$this->config->get('config_name')
-name of store

如果您试图将页面标题编辑为以下内容: 您的店铺-产品名称

编辑此文件:

catalog\controller\product\product.php
$this->document->setTitle($product_info['meta_title']);
$this->document->setTitle($this->config->get('config_name') . ' - ' . $product_info['meta_title']);
查找:

catalog\controller\product\product.php
$this->document->setTitle($product_info['meta_title']);
$this->document->setTitle($this->config->get('config_name') . ' - ' . $product_info['meta_title']);
替换为:

catalog\controller\product\product.php
$this->document->setTitle($product_info['meta_title']);
$this->document->setTitle($this->config->get('config_name') . ' - ' . $product_info['meta_title']);

您可以对其他页面(如
category.php
)执行相同的操作,您需要搜索
setTitle

在哪里显示它?头球?页脚?内容?@页面标题中的DigitCart商店名称