OpenCart版本4添加到购物车给出JSON响应

发布于 2025-02-08 16:45:49 字数 547 浏览 2 评论 0原文

我最近安装了打开CART版本4.0,但每件事都是成功的,但是,当尝试将产品添加到购物车中时,它给出了json响应,以文本表单为在添加产品之前,不要转到我所在的页面。

下面我提到了浏览器中显示的响应。

{"success":"Success: You have added <a href=\"https:\/\/stores.justgoonline.online\/index.php?route=product\/product&amp;language=en-gb&amp;product_id=40\">iPhone<\/a> to your <a href=\"https:\/\/stores.justgoonline.online\/index.php?route=checkout\/cart&amp;language=en-gb\">shopping cart<\/a>!"}

我必须按浏览器上的后退按钮才能回到我的位置。

请问这个问题吗?

I recently installed Open Cart Version 4.0 and every thing was successful, However, when try to add a product to the cart it gives a json response in a text form, it does not go to the page that I was in before adding the product.

Below I have mentioned the response that is displayed in the browser.

{"success":"Success: You have added <a href=\"https:\/\/stores.justgoonline.online\/index.php?route=product\/product&language=en-gb&product_id=40\">iPhone<\/a> to your <a href=\"https:\/\/stores.justgoonline.online\/index.php?route=checkout\/cart&language=en-gb\">shopping cart<\/a>!"}

I have to press the back button on browser to get back to where i was.

Any fixes to this please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过期情话 2025-02-15 16:45:49

我无法弄清楚这一点。因此,从8.1恢复为7.4 php 7.4,并将OpenCart降级为3.x版本,现在都可以正常工作。

I had no luck in figuring this out. so reverted back to php 7.4 from 8.1 and downgraded opencart for version 3.x and now all working fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文