简体   繁体   English

自定义选项更新Magento产品图片

[英]Custom Options Update Magento Product Image

I've been working on this issue for a long time and it's the only thing keeping my Magento store from launching at this point. 我已经在这个问题上研究了很长时间了,这是阻止我的Magento商店在这一点上启动的唯一方法。 I've tried a number of extensions to accomplish this and I still can't figure it out. 我已经尝试了许多扩展来实现此目的,但我仍然无法弄清楚。 Any help would be appreciated. 任何帮助,将不胜感激。

Basically, my store offers a particular item that is built to order. 基本上,我的商店提供按订单生产的特定物品。 I need to find a way to update the product's image when a new selection is made to one of the options via dropdown box. 当通过下拉框对选项之一进行新选择时,我需要找到一种更新产品图像的方法。 See the links below for a couple of examples. 请参阅下面的链接以获取一些示例。 I can accomplish this through either Custom Options or a Bundled Product, whichever will allow me to add new items when necessary. 我可以通过“自定义选项”或“捆绑产品”来完成此操作,无论哪种方式,我都可以在必要时添加新项目。

Examples of what I'm looking for: 我要寻找的示例:

If anyone can help me out with coding these features, or pointing me in the right direction for a tutorial or an explanation of how to go about it I would really appreciate it… 如果有人可以帮助我编写这些功能,或者为我提供正确的指导教程或对它进行解释的方法,我将不胜感激。

Thank you!! 谢谢!!

Joe. If understand you right, you need to change the main product image when a user chooses one of the available options. 如果理解正确,那么当用户选择可用选项之一时,您需要更改主产品图像。 The best way to do this is to create a transparent image that will overlay the main picture. 最好的方法是创建将覆盖主图片的透明图像。 As a result, the product picture will be updated in accordance with the selected custom option. 因此,产品图片将根据所选的自定义选项进行更新。 So, store visitors will see the product variation exactly how it should look like. 因此,商店访客将完全看到产品变化的外观。

You can try to code this method manually, or use the extension offered here https://store.orange35.com/image-constructor-for-custom-options-for-magento 您可以尝试手动编码此方法,也可以使用此处提供的扩展名https://store.orange35.com/image-constructor-for-custom-options-for-magento

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM