如何使用 Magento 在可配置产品中显示简单产品的缩略图
我想显示每个简单产品的缩略图和选项名称,并使用单选按钮在可配置产品中进行选择。默认行为是使用下拉框之类的小部件在文本中显示选项。我正在使用 Magento 社区版 1.4.1。以前有人这样做过吗?你能指导我正确的方向吗?
I want to show each simple product's thumbnail image and option name with a radio button to select in configurable products. Default behavior is showing options in text with a widget like dropdown box. I am using Magento Community Edition 1.4.1. Are there anybody has done this before? Could you guide me for a right direction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认行为是使用下拉列表格式将图像更改为使用 Javascript 的简单产品图像。如果您想更改该功能,则需要更改创建这些选项的帮助程序。
我的没有干净的安装,并且我有一个模块完全覆盖了选项部分,但是您需要做的是找到可配置产品信息显示这些下拉字段的位置,并将它们更改为无线电简单的产品形象。很抱歉,我没有为您提供具体信息,但这应该可以帮助您开始。
The default behavior is to have these in dropdown format with the images changing to that of the simple product's image using Javascript. If you want to change that functionality, you are going to need to change the helper that creates those options.
I don't have a clean install on mine, and I've got a module completely overwriting the options portion, but what you will need to do is find where the configurable product information is displaying those drop down fields and change them to radio with the simple product image. I'm sorry I don't have specifics for you, but that should get you started.
可以在此处以现场演示的形式看到所询问的内容的示例:
注意:缩略图作为“选择花瓶:”部分下的选项。
http://products .proflowers.com/tulips/MultiColored-Tulips-4811?ref=homenoref&viewpos=1&trackingpgroup=mdt&psrid=975370
An example of what is being asked can be seen here in the form of a live demo:
Note: the thumbnails as options under the "Pick a vase:" section.
http://products.proflowers.com/tulips/MultiColored-Tulips-4811?ref=homenoref&viewpos=1&trackingpgroup=mdt&psrid=975370