查看订单信息时,OpenCart 2.2错误未定义 [英] OpenCart 2.2 error undefined when viewing order info

查看:127
本文介绍了查看订单信息时,OpenCart 2.2错误未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击订单旁边的查看按钮时(无论是从仪表板还是订单页面),在页面加载时都会收到错误未定义"警报.

When I click the view button next to an order (whether from the dashboard or orders page) I get an "error undefined" alert as the page is loading.

当我尝试在同一页面上更改订单状态时,也会遇到相同的错误,但不会产生任何结果.

I also get the same error when I try and change the order status from the same page and it yields no results.

它在错误日志中也不会产生任何错误.

It also produces no errors in the error log.

但是我可以从编辑订单页面更改订单状态,但这很不方便.

I can however change the order status from the edit order page but this is very inconvenient.

如果有人知道一个常见的解决方案,或者可能有关于如何开始诊断问题的指针,请在此处发布.我一天中大部分时间都在寻找答案,但是没有任何解决办法的运气.

If anyone knows a common solution or maybe pointers as to how to start diagnosing the issue please post them here. I've been hunting for answers most of the day and have had no luck with any solutions.

ty.

推荐答案

如果您正在使用SSL Tyr,请在upload/admin/controller/sale/order.php

if you are using SSL Tyr this at upload/admin/controller/sale/order.php

之后

 $data['store_name'] = $order_info['store_name'];

删除

$data['store_url'] = $this->request->server['HTTPS'] ? preg_replace("/^http:\/\//", "https://", $order_info['store_url']) : $order_info['store_url'];

添加

$data['store_url'] = $this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG;

这篇关于查看订单信息时,OpenCart 2.2错误未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆