【问题标题】:Opencart 1.5.5.1 how change link in admin orderOpencart 1.5.5.1 如何更改管理员订单中的链接
【发布时间】:2015-03-01 09:12:18
【问题描述】:

opencart 1.5.5.1 怎么改链接正常?见图片http://i.imgur.com/H9krDbT.jpg

管理命令中的链接以编辑项目 (admin/index.php?route=catalog/product/update&token=4d93b21563db6a6c5fe44b7c365c210b&product_id=54),这很糟糕,如何更改正常链接 (index.php?route=product/product&product_id= 54)

【问题讨论】:

    标签: opencart


    【解决方案1】:
    $action = array();
    
                $action = array(
                    'text' => [[Pass_text_value]],
                    'href' => $this->url->link('catalog/product/update', 'token=' . $this->session->data['token'] . '&product_id=' . [[Pass_product_id_here]] . $url, 'SSL')
                );
    

    看到这是您应该将诸如 EDIT 之类的操作从控制器传递到模板的唯一方法。不会显示整个链接,只会显示传递的文本。

    如果您将多个实例传递给模板,则将这些整个代码放入您的 foreach 循环和 change $action = array( 到 $action[] = array(。

    【讨论】:

    • 谢谢!我稍后再检查。
    猜你喜欢
    • 2013-05-10
    • 2013-04-19
    • 2013-04-30
    • 1970-01-01
    • 2023-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多