【问题标题】:opencart routes does not match any functionopencart 路线不匹配任何功能
【发布时间】:2016-01-20 11:30:04
【问题描述】:

当我请求这个网址时, https://localhost/index.php?route=product/search/ajax&keyword=brocco

opencart 返回一个产品对象,如

[  
    {  
        "name":"Broccoli (Broccoli)",
        "href":"https:\/\/localhost\/broccoli?keyword=brocco",
        "image":"https:\/\/localhost\/image\/cache\/catalog\/product\/broccoli_new-47x47.jpg"
    }
]

但我找不到产品/搜索/ajax 方法。 ajax 函数不在

catalog/controller/product/product.php (class ControllerProductProduct) 或 catalog/controller/product/search.php (class ControllerProductSearch)

【问题讨论】:

  • 你搜索过VQMOD吗?
  • vqmod目录中有2个xml文件但不相关
  • 什么是opencart版本?

标签: opencart opencart2.x


【解决方案1】:

如果product/search/ajax 文件中不存在方法product/search/ajax,那么这应该在以下文件中。

system/modification/catalog/controller/product/search.php

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-29
    • 2020-06-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多