Hi there,
We are using live prices and we subscribe the CartLoaded and OrderLineAdded notifications. There issue I am pursuing is when we add quantity of one previously added product the minicart counter/price is not up to date.
The reason behind this is the add to cart response has the correct number of products but the previous cart total price.
Add to cart request:
https://dev-ska.mydwsite2.com/Default.aspx?ID=6308&Quantity=6&redirect=false&getproductinfo=true&ProductID=100139&cartcmd=add&feedtype=Counter
- CartLoaded notification
- before force recalculate: 25.62
- after force recalculate: 25.62
- OrderLineAdded notification
- before force order recalculate: 51.24
- after force order recalculate: 51.24
We can see that prices above are correct even without the recalculate but the response will be 25.62 and not 51.24 as it would be expected.
Next mini cart load request
https://dev-ska.mydwsite2.com/Default.aspx?ID=6308
- CartLoaded notification
- before force order recalculate: 25.62
- after force order recalculate: 51.24
Here the price is displayed correctly, but is too late since the mini cart counter was already updated, creating a mismatch between counter and the mini cart panel info.
Without the redirect=false on the add to cart request this works since it performs a new mini cart load request, but Rapido is not built that way.
Here's a screencast to help visualize the issue - https://www.screencast.com/t/w0wz1Zqm9hP
I am not sure where to look further, could it be that template tags are generated right after the OrderLoaded notification? Any and all thoughts are appreciated.
Thanks!
BR, Mario