“请指定产品的选项"在Magento. [英] "Please specify the product's option(s)" in Magento.

查看:53
本文介绍了“请指定产品的选项"在Magento.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Magento中,我正在使用捆绑产品,并且有一个可配置产品作为捆绑产品的关联产品.此可配置产品具有4个简单产品,作为可配置产品的关联产品.

In Magento, I am using bundled products and I have a configurable product as an associated product of the bundled product. This configurable product has 4 simple product as associated products of the configurable product.

链条如下所示: -捆绑产品-可配置产品(与捆绑产品关联)-简单产品(与可配置产品关联)

The chain goes like: - bundle product - configurrable product (associated with bundled product) - simple products (associated with configurable products)

现在,在前端的捆绑产品视图页面中,我收到以下消息:

Now, in the bundled product view page in the frontend, I'm getting this message:

请指定产品选项

Please specify product option(s)

尽管我已根据需要填写了所有产品的所有必填字段,

although I have filled out all the required fields for all the products as required,

将产品添加到购物车时,会出现此验证错误消息.

This validation error message occurs while adding the product to the cart.

有什么建议吗?我一直困扰着这个问题.

Any advice? I've been stuck for day with this problem.

推荐答案

要扩展Andrey的答案,如果要在捆绑包中包含所需选项的可配置产品,则需要修改模板以输出产品选项在渲染期间.如果存在价格差异,则基本上是要重写JS以支持页面上的动态定价机制.

To expand on Andrey's answer, if you want a configurable product in a bundle that includes required options, you'll need to modify the templates to output the product options during rendering. If there are price differences, you'll basically be rewriting the JS to support the dynamic pricing mechanism on the page.

提交表单后,您需要修改购物车类和控制器以支持在将商品放置在购物车中时保存产品选项.您还需要像以前一样覆盖定价,以支持由此带来的任何自定义定价.确保购物车资源类正确地将简单产品保存在捆绑产品下面的可配置产品下面.

Once the form is submitted, you'll need to modify the cart classes and controllers to support saving the product options as the items are placed in the cart. You'll also need to override pricing as before to support whatever custom pricing this entails. Make sure that the cart resource classes properly save the simple products underneath the configurable products underneath the bundle product.

我可能错过了几项.这就是当前不支持它的原因. :/

I've probably missed several items. This is why it is currently not supported. :/

谢谢, 乔

这篇关于“请指定产品的选项"在Magento.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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