Hi folks,
One of my clients is a store that sells tea, including loose teas that you buy by the ounce. Sometimes a client will order two or more packages of the same tea, e.g. for gifts. So if a customer puts qty. 4 of some product in their basket, and then clicks Add To Basket again for 4 more, they don't want the store to combine them into a single line item with qty. 8.
I wrote a custom module to implement this, and it worked quite well in v5. But in v9, although the add-to-basket operations still work, the store will combine the items later. It happens on the BASK page if the customer clicks a Remove or Update-qty. button for any item. Also, as you go through checkout, the items will be combined by the time you get to OSEL.
This is not just a display issue. I already edited all the basket-contents templates to use basket:items instead of basket:groups. I looked at the DB to confirm that the store is actually deleting BasketItem records. After a look at the LSK, I gather that this is being caused by the Runtime_Discount_Basket() function, which is pretty complex; I didn't dig much deeper than that.
All I really need to know is: can we turn off this item-combining functionality, and if so, how? The store does use some price groups.
Thanks --
One of my clients is a store that sells tea, including loose teas that you buy by the ounce. Sometimes a client will order two or more packages of the same tea, e.g. for gifts. So if a customer puts qty. 4 of some product in their basket, and then clicks Add To Basket again for 4 more, they don't want the store to combine them into a single line item with qty. 8.
I wrote a custom module to implement this, and it worked quite well in v5. But in v9, although the add-to-basket operations still work, the store will combine the items later. It happens on the BASK page if the customer clicks a Remove or Update-qty. button for any item. Also, as you go through checkout, the items will be combined by the time you get to OSEL.
This is not just a display issue. I already edited all the basket-contents templates to use basket:items instead of basket:groups. I looked at the DB to confirm that the store is actually deleting BasketItem records. After a look at the LSK, I gather that this is being caused by the Runtime_Discount_Basket() function, which is pretty complex; I didn't dig much deeper than that.
All I really need to know is: can we turn off this item-combining functionality, and if so, how? The store does use some price groups.
Thanks --
Comment