Breakdown of products into individual entries in the mshop_order_base_product table

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!
krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Breakdown of products into individual entries in the mshop_order_base_product table

Post by krzysiekp » 09 Dec 2022, 10:36

Is it possible to do this if someone orders product A in the amount of 3 pieces, so that in the mshop_order_base_product table there will be 3 entries of 1 piece each instead of 1 entry with 3 pieces ?

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

Re: Breakdown of products into individual entries in the mshop_order_base_product table

Post by aimeos » 11 Dec 2022, 10:52

Not out of the box. You would have to either change the order/base item so it doesn't combine the same ordered products:
https://github.com/aimeos/aimeos-core/b ... #L759-L806

Or you adapt the order/base manager to store each product as a separate row:
https://github.com/aimeos/aimeos-core/b ... #L558-L614
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply