Display every product in basket separately
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Display every product in basket separately
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é
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
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
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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star