【问题标题】:Cannot add new products when manually creating a new order手动创建新订单时无法添加新产品
【发布时间】:2020-09-15 16:23:44
【问题描述】:

我已经在互联网上搜索了几天的解决方案,但没有找到!对于 Opencart 系统中如此重要的功能,他们没有解决方案、解决方法或修复程序,这很奇怪。

我在 OpenCart 3.0.3.6 上,我要做的只是代表客户从管理员端创建一个订单...这是我商店的必需品,因为我们通过电话接受订单。

步骤:

  1. 转到:管理 > 订单 > 插入 (+)
  2. 选择一个客户,然后点击继续。
  3. 选择任何产品并点击“+添加产品”
  4. 即使重复相同的步骤 1000 次,产品也不会添加到表中,奇怪的是没有记录错误,屏幕上没有显示错误,甚至 Google Chrome 检查器也没有记录错误在控制台标签下。

我能找到的唯一错误如下:

_ 在“控制台”选项卡下的 Firefox Inspector 中。

Cookie “__cfduid” will be soon treated as cross-site cookie against “https://examle.com/admin/index.php?route=catalog/product/autocomplete&user_token=kjkjsdsakdakjsdjashdasdas&filter_name=” because the scheme does not match. index.php
Cookie “__cfduid” will be soon treated as cross-site cookie against “https://example.com/index.php?route=api/cart/add&api_token=kjkjsdsakdakjsdjashdasdas&store_id=0” because the scheme does not match. index.php
Cookie “__cfduid” will be soon treated as cross-site cookie against “https://example.com/index.php?route=api/cart/products&api_token=kjkjsdsakdakjsdjashdasdas&store_id=0” because the scheme does not match.

我该怎么办?有什么地方可以解决吗?补丁?代码修改?

谢谢,

【问题讨论】:

  • 可能有一个 mod 或扩展在后台破坏了某些东西(例如,修改产品或在将产品添加到购物车时执行某些操作)。查看错误日志并查看其中的内容(“系统”>“维护”>“错误日志”)。

标签: opencart


【解决方案1】:

问题解决了!

经过几天的搜索,终于解决了问题,是由于缓存造成的。

Cloudflare 缓存和网站缓存都没有,但问题出在 cPanel 服务器缓存,可以从以下位置关闭它:cPanel > 缓存管理器 > 选择您的站点 > 在选项选项卡下 > 关闭此站点的缓存。

瞧,问题已经一去不复返了!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-09-30
    • 2022-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-29
    • 1970-01-01
    相关资源
    最近更新 更多