Page 1 of 1

Display every product in basket separately

Posted: 12 Dec 2016, 13:05
by Pejka
Hello!
Is there any setting so that whenever someone adds a product to the basket that's already in the basket, or increases the amount of it, it doesn't increase the quantity but adds a different entry to the basket? In other words, I need a basket that doesn't aggregate the same products into a single line / value, but stores every item separately.
Thanks,
Máté

Re: Display every product in basket separately

Posted: 13 Dec 2016, 10:06
by aimeos
Currently, the same products with the same attributes are merged together due to
https://github.com/aimeos/aimeos-core/b ... e.php#L170

It would be possible to add a parameter like "$merge" (true/false) and pass a new option to addProduct() in the Basket controller:
https://github.com/aimeos/ai-controller ... rd.php#L98

If the basket should contain only products with a quantity of one (several times), you have to overwrite the editProduct() method:
https://github.com/aimeos/ai-controller ... d.php#L172