Hello.
I have this code to add Basket Items to my Basket:
BasketItem bi = new BasketItem();
bi.ProductId = productId;
bi.Quantity = (short)(bi.Quantity + 1);
this.CurrentBasket.Items.Add(bi);
this.CurrentBasket.Save();
this.CurrentBasket.Recalculate();
Before the Recalculate I have Count=1 in this.CurrentBasket.Items, after I have 3.
Any idea why this happens? Am I creating correctly the BasketItem?
Thanks ,
Bruno Martinho
Basket Recalculate() Generates new BasketItems
Re: Basket Recalculate() Generates new BasketItems
When you trigger recalculate on basket it enforces many calculations like it may automatically apply discounts valid for your basket item. There are different types of basket items like Product, Coupon, Discounts, Shipping etc. I think in your case these extra items may be shipping and discounts but you can try to confirm this by looking at details of these two extra basket items.