Can someone please explain why basket groups exist, and how they are used?
In my experience, it seems like basket:groups and basket:items are almost always identical. But I've written a lot of modules that work with BasketItems, and I'm concerned that they may not work correctly in some cases.
My impression is that groups are identical to lines, except when the store uses "Buy X Get Y" discounts, in which case groups are used to link the X's and Y's. Also, there are apparently some cases where the store will take a single BasketItem with a quantity greater than 1, and split it into several BasketItems that each have a quantity of 1. But I don't know exactly when that happens, and when the items are merged back together.
Can I get a complete explanation of how and when groups are different from item, please?
Thanks --
In my experience, it seems like basket:groups and basket:items are almost always identical. But I've written a lot of modules that work with BasketItems, and I'm concerned that they may not work correctly in some cases.
My impression is that groups are identical to lines, except when the store uses "Buy X Get Y" discounts, in which case groups are used to link the X's and Y's. Also, there are apparently some cases where the store will take a single BasketItem with a quantity greater than 1, and split it into several BasketItems that each have a quantity of 1. But I don't know exactly when that happens, and when the items are merged back together.
Can I get a complete explanation of how and when groups are different from item, please?
Thanks --
Comment