Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
2125 Visninger

Hello everyone,

I’m facing a problem and could use some help. I'm working on an online store and want to implement a specific feature for product images. Here's my issue: I want the product photo to change based on the color selected by the user and for this image to remain linked to the color even when different sizes are selected. Currently, it seems the photo changes when another size is selected, which is not what I want.

Additionally, I would like each product color to be listed under a single main product, but also for each color to appear individually in the "all products" section. In summary, I need a way to link images to colors persistently and to have all color variants grouped under a single main product while appearing as separate options in the "all products" list. Any help or suggestions would be greatly appreciated!

Thank you in advance for your responses.


Avatar
Kassér
Bedste svar

Link each color variant to its own image and use custom JavaScript to keep the image fixed when sizes are changed. Group all color variants under one product but list each color individually in the "all products" section.

Avatar
Kassér
Bedste svar

Hey, 

Not sure if it fits your needs 100% but we developed an app that shows all variants on one page (even cross template, basically any list of products you search for), and it allows you to easily drag-and-drop images between variants and products.  This makes it easy to improve and correct or reorder product images.

Check it out here: https://www.spinomana.com/easy-image-management

Kind regards,

Seppe

Avatar
Kassér
Bedste svar

Hi,

In Odoo, you can achieve the desired product image and display behavior by following these steps:

1. Create a Main Product: Go to Sales > Products > Products, create a new storable product, and enable variants.

2. Add Attributes: Under the Variants tab, add Color and Size attributes with their possible values.

3. Assign Images to Variants: Click on each color variant and upload the corresponding image.

4. Dynamic Image Update: Ensure that the images update dynamically when a user selects a different color.

5. Display Variants Individually: Enable Variants as Products by going to Sales > Configuration > Settings and enabling this option under the Product section.

By following these steps, product images will change based on the selected color and remain linked to the color even when different sizes are selected, and each color variant will appear individually in the "all products" section while being grouped under a single main product.


Hope it helps.

Avatar
Kassér

Is this possible on Odoo Online free?

Related Posts Besvarelser Visninger Aktivitet
3
sep. 24
2610
1
nov. 20
2578
1
jan. 25
993
2
sep. 24
1416
0
jan. 24
1044