如何使用 Magento 在可配置产品中显示简单产品的缩略图

发布于 2024-09-16 09:07:14 字数 117 浏览 2 评论 0原文

我想显示每个简单产品的缩略图和选项名称,并使用单选按钮在可配置产品中进行选择。默认行为是使用下拉框之类的小部件在文本中显示选项。我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

萝莉病 2024-09-23 09:07:14

默认行为是使用下拉列表格式将图像更改为使用 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.

御弟哥哥 2024-09-23 09:07:14

可以在此处以现场演示的形式看到所询问的内容的示例:

注意:缩略图作为“选择花瓶:”部分下的选项。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文