Page 1 of 1

Selections in bundles

Posted: 28 Nov 2016, 15:11
by gilbertsoft
Hello again!

I got some serious problems with selections in bundles, where should the user select the variant attributes? There's nothing shown. Then I tried the demo data, if I add the "Demo bundle article" to the basket there is the error "Preis-Item nicht verfügbar" shown. There is also no variant attribute shown, so I think that's the reason of the error message, no unique product can be found because no variants are specified!

Thanks
Simon

Re: Selections in bundles

Posted: 30 Nov 2016, 10:03
by aimeos
The demo is OK and works, e.g.:
http://laravel.demo.aimeos.org/default/ ... _article/2

The bundle product has some limitations. Bundles of articles are perfectly fine and work as you expect. Bundles of selection products are not fully supported because only the selection product itself is added to the order. You need to add the possible variant attributes to the bundle product so you can determine the right article afterwards.

This is not perfect but bundles are problematic if you try to use
- several selection products in a bundle
- bundles of bundles
In these cases, the shop can't resolve the articles any more even if a single selection product in a bundle would work.

Re: Selections in bundles

Posted: 30 Nov 2016, 16:04
by gilbertsoft
Are there any plans to extend this functionality?

If not I'll do it myself: my idea is to show the attributes of selections in bundles grouped by the selection. This should solve the first issue, but not the one with bundles in bundles. Should not be a big thing, what do you think? Any other suggestions? Of course I'll push it to the repo at the end.

Re: Selections in bundles

Posted: 01 Dec 2016, 10:29
by aimeos
We would happily accept a PR for implementing this feature :-)
You need to adapt the basket controller too, so it's able to select the variant based on the chosen attributes. That's the hard part.

Re: Selections in bundles

Posted: 01 Dec 2016, 11:59
by gilbertsoft
Will work on this the next weeks, but for now I got other things to solve...