无法使用AJAX添加到购物车选项中的WooCommerce中的订阅计划

发布于 2025-02-14 01:59:08 字数 1220 浏览 1 评论 0 原文

因此,我正在使用 woocommerce订阅插件以及 ajax侧购物车插件。在第一次购买中将订阅产品添加到购物车中时,我不会遇到任何问题。只有当客户决定更改其订阅计划时,所有差异才会发生。该产品没有被添加到购物车中。 Ajax调用是由插件还是由WooCommerce进行的,该产品不会添加到购物车中。

我可能已经在 this this this this线程但是我不确定解决方案是否真的可以工作,因此,如果有人可以在这里引导一点菜鸟,那将有很大的帮助。

从附带说明,我已经发布了另一个问题在此站点上,要求解决这个完全相同的问题的更具体的解决方案。如果有人会回答这个问题,而不是这个问题,那么他们就非常欢迎。

提前致谢。

So I am using Woocommerce subscriptions plugin along with an AJAX side cart plugin. I don't face any issue when adding subscription product to cart for the first purchase. It's only when the customer decides to switch their subscription plan that all the discrepancies occur. The product is not being added to cart. It doesn't matter whether the AJAX call is made by the plugin or by woocommerce, the product is not getting added to cart.

I might have found the cause for it in this thread but I'm not 100% sure if the solution would actually work, so if anyone can guide a little noob out here, it would be of great help.

On a side note, I have posted another question on this site, asking for a more specific solution to this exact same problem. If someone would answer that question rather than this one, they're more than welcome.

Thanks in advance.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文