单击“添加到购物车”按钮,同时将两个产品添加到 magento 购物车
我一直在研究 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
各种购物车都有购物车规则。您可以通过编码来操纵这些规则并获得所需的输出。
There are cart rules for various shopping carts. You can manipulate those rules through coding and achieve the desired output.