捆绑产品作为单独的订单项添加到购物车 [英] Bundle Product add to cart as individual line items

查看:85
本文介绍了捆绑产品作为单独的订单项添加到购物车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可能有一个捆绑产品,当将其添加到购物车时会将每个捆绑项目添加为单独的订单项. 我想让我的客户配置他们的产品(假设它是一台计算机),然后在购物车中从该捆绑包中删除他们不想要的商品-或改变主意.然后,他们可能会选择添加新商品-或添加其他商品(非捆绑商品,仅是正常购物). 他们的想法是,他们可以通过一种快速的方法来添加该捆绑包中所需的大多数商品,但是他们可以编辑购物车以添加一些在配置捆绑包时无法选择的东西. 我不想在捆绑产品页面上给用户太多选项.

Is it possible to have a bundle product that when added to the cart adds each of the bundle items as individual line items. I want to allow my customers to configure their product (let’s say it’s a computer) and then in the shopping cart, remove an item they don't want - or change their mind about - from that bundle. They might then choose to add a new item instead - or a bunch of other (non-bundle stuff, just normal shopping). The idea being that they have a fast method of adding most of the stuff they want in this bundle, but they can then edit their cart to add something that wasn’t available as an option to them when configuring the bundle. I don’t want to overload the user with too many options in the bundle product page.

我可能错过了Magento中的一个选项,但是目前它会将所有捆绑商品作为单个订单项添加到插入符号中,从而使其无法按照我的方式进行编辑.

I might have missed an option in Magento, but currently it adds all the bundle items into the caret as a single line item, making it uneditable in the way I want.

有什么建议吗?

推荐答案

Magento中的这种行为是故意的,因为您可能不想让客户订购没有CPU或内存的PC.对于您而言,这种假设似乎并非如此,但这仍然是使用捆绑产品的方法.

This behavior in Magento is intentional, as you may not want to let a customer order a PC without a CPU or memory. In your case, this assumption appears not to be the case, but that remains the method for using bundled products.

有几种选择可以避免这种情况.首先,您可以使用捆绑产品以外的其他产品类型,然后将简单产品而非捆绑产品实际添加到购物车中.这将允许客户随意添加选项,但不会保留产品的任何促销价格,因为Magento会在每次加载页面时检查这些价格/折扣,并且会踢出您手动设置的任何更改.

There are a few options open to you to avoid this situation. Firstly, you could use some product type other than bundle, and actually add simple products to your cart rather than the bundled ones. This would allow customers to add options at will, but would not preserve any promotional pricing on the products, as Magento checks those prices/discounts on every page load, and would kick out any changes you set manually.

另一种选择是允许客户更轻松地更改他们选择的捆绑产品.呈现捆绑产品时,您可以呈现一个小的X按钮(或任何您认为合适的按钮),这将导致您指定的操作,其作用是更改捆绑选项,重新保存购物车商品并将用户重定向回到购物车.这可能是解决问题的最干净的方法.

The other option would be to allow customers an easier path to changing the bundle product that they have chosen. When rendering the bundle product, you could render a little X button (or whatever you find appropriate), which would lead to an action you specify, whose job it is to change the bundle options, resave the cart item, and redirect the user back to the cart. This is probably the cleanest solution to the problem.

希望有帮助!

谢谢, 乔

这篇关于捆绑产品作为单独的订单项添加到购物车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆