Magento 分组产品选项
我想将一组产品显示为具有这些属性的一个产品内的表格。
尺寸宽度x角撑板x高度代码价格/箱包/箱重量
所以我选择了分组产品选项,但它不符合要求。我如何从分组产品选项中设计类似表格的格式,并使用单选按钮从中仅选择一种产品。因此,使用分组产品或可配置产品或以任何方式我怎样才能实现这一目标。
这里附上我真正想要的屏幕截图
I want to show a set of products as a table inside one product with these attributes.
Dimensions Width x Gusset x Height Code Price/Case Bags/Case Weight
So i chosen grouped product option but it does not match the requirement. How can i design a table like format from the grouped product option with radio button to choose only one product from it. So using grouped product or configurable product or by any way how can i achieve this.
Here am attaching the screen-shot which i actually wanted
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我可以想出两种在代码中表示这一点的方法。如果维度往往来自一组有限的选择,您可以使用可配置产品来表示此选择,只需在表中显示所有可能的子产品。这将使您可以重新使用现有的目录产品页面,并进行一些改造。
如果它们不太适合,您可以将这些项目放置在公共类别中隐藏的类别中,并循环遍历该类别中的每个产品以显示表格。这将需要更多的工作来联系放入购物车等。
重要的是,看起来您的每个选项都有一个完全不相关的价格,所以在我看来,您在某个时候需要有一个简单的产品来支持这些选项。 (我相信你可以变得更聪明,我只是不确定这是一个好主意。)
I can think of two ways to represent this in code. If the dimensions tend to be from a limited set of choices, you could use a configurable product to represent this choice, simply displaying all possible sub-products in the table. This would let you reuse the existing catalog product page with a little retrofitting.
If they do not fit well, you could place the items in a category hidden from the public categories and loop through each of the products in the category to display the table. This would require more work to tie back to putting into the cart, etc.
Importantly, it looks like each of your options has an entirely uncorrelated price, so it seems to me that you need to have a simple product underpinning these options at some point. (I'm sure you could get more clever, I'm just not sure that's a good idea.)
您可以使用 Magento 插件轻松解决此问题。这里有一个插件可以完全满足您的需求。它将在网格中显示产品选项: http://www.magemechanics.com/product-网格选项.html
You can easily solve this with a plugin for Magento. There is a plugin here which will do exactly what you want. It will display product options in a grid: http://www.magemechanics.com/product-grid-options.html