如何在产品 Opencart 中添加链接 href


How add link href in product Opencart?

我是Opencart的初学者,我尝试在我的主页中添加一些产品。我从类别/产品检查.php在店面中,每个产品都有按类别的链接(链接网络/计算机/笔记本电脑/产品)

当我从类别.tpl检查它使用<a href="<?php echo $product['href']; ?>">

在产品的控制器中:

'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'])

但我不知道代码来自哪里if (isset($this->request->get['path'])) {(已经签入视图和模型)

我如何在我的代码中添加请求$this->request->get['path']以进行 href ?

我将不胜感激任何答案或评论。

如果您想将

特定产品添加到商店的主页中,则可以为此目的使用"特色"模块。只需在那里添加产品并将其放入家庭布局即可。