OpenCart版本4添加到购物车给出JSON响应
我最近安装了打开CART版本4.0
,但每件事都是成功的,但是,当尝试将产品添加到购物车中时,它给出了json
响应,以文本表单为在添加产品之前,不要转到我所在的页面。
下面我提到了浏览器中显示的响应。
{"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 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法弄清楚这一点。因此,从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.