Images groups

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Images groups

Post by Travin » 29 Dec 2017, 19:58

Hi
I want to add different images to different products options. For example, 5 photos for shoes size M, 4 different photos for size XL.
I think there are no default solutions for that. Can you explain me the way i should write a code for this? I can do a pull request if it will be good descision.
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Images groups

Post by aimeos » 30 Dec 2017, 14:30

It's already possible if you add the variant attributes also to the images but you have to do that in the expert mode:
https://github.com/aimeos/ai-client-htm ... rd.php#L17
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Images groups

Post by Travin » 30 Dec 2017, 19:44

A little bit not user friendly interface, but it works! i think it will be awesome in the future :) . Thank you! Merry christmas and happy new year!
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Images groups

Post by aimeos » 31 Dec 2017, 11:39

Yes, there are still some rough edges in the admin interface that needs to be better in the next versions.
We always appreciate contributions ;-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Images groups

Post by aimeos » 13 Jan 2018, 21:09

In the dev-master branch, the attributes are now automatically associated to the images so it works automatically as soon as you add an image to a product variant :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply