单击“添加到购物车”按钮,同时将两个产品添加到 magento 购物车

发布于 2024-12-15 19:00:39 字数 501 浏览 5 评论 0原文

我一直在研究 LiftSuggest - 一个自动产品推荐生成器。

现在,我引入了捆绑功能,它将捆绑两种产品并分配折扣。

例如, 在客户网站 A 的产品页面上,I(LiftSuggest) 显示了一个捆绑包,上面写着“一起购买 A 和 B,可享受净值 10% 的折扣”。现在,当用户单击“添加到购物车”按钮时,我希望将这两种产品同时添加到购物车。我已经实施了链接上提出的解决方案,但我需要添加产品单击“添加到购物车”按钮,无需输入数量或提供复选框。想象一下,您可以看到一个包含两种产品的盒子(容器),然后单击“添加到购物车”按钮 - 在该 div 容器本身中,它们都是应该添加到购物车。我可以看出我需要在会话中存储这两种产品,但我不知道到底如何继续。

使用的脚本语言:PHP

请帮忙!

I have been working on a LiftSuggest - an automatic Product Recommendations generator.

Now,I have introduced a bundling functionality which will bundle two products and assign discount.

For example,
On product page of A of the client's site,I(LiftSuggest) displays a bundle Saying "Buy A and B together and avail 10% off on net value". Now, when the user clicks on the add to cart button , I want both the products to be added simultaneously to cart. I had implemented the solution proposed on this link, but I need the products to be added on click of add to cart button,without entering the quantity or providing the check box.Just imagine that you can see a box( container) containing two products and on click of add to cart button-in that div container itself, both of them should be added to cart.I can make out that I need to store both the products in session, but I don't know exactly how to proceed.

Scripting language used:PHP

Please Help!

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

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

发布评论

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

评论(1

ヅ她的身影、若隐若现 2024-12-22 19:00:39

各种购物车都有购物车规则。您可以通过编码来操纵这些规则并获得所需的输出。

There are cart rules for various shopping carts. You can manipulate those rules through coding and achieve the desired output.

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