2016-02-11 31 views
1

我是Opencart的初學者,我嘗試在我的主頁上添加一些產品。 我在商店前類別/ product.php檢查,每一個產品都按類別(linkweb /電腦/筆記本電腦/產品)鏈接如何在產品Opencart中添加鏈接href?

,當我從category.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?

我會感謝任何答案或評論。

+0

http://wiki.opencarthelp.com/doku.php?id=method_request_get – linktoahref

回答

0

如果您想將特定產品添加到您的商店的主頁,那麼就有「特色」模塊用於此目的。只需在那裏添加產品並將其放入主頁佈局。

相關問題