-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add products to line items on cart refresh #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to test next scenarios:
The product for LineItem added to the cart was removed, the price changed, became unavailable
@@ -82,12 +82,15 @@ public void LoadOrCreateNewTransientCart(string cartName, Store store, User user | |||
//Load cart payment plan with have same id | |||
if (store.SubscriptionEnabled) | |||
{ | |||
var productsIds = cart.Items.Select(x => x.ProductId).Distinct().ToArray(); | |||
var products = await _catalogService.GetProductsAsync(productsIds, ItemResponseGroup.ItemWithPrices); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to load products with these response groups
ItemResponseGroup.ItemWithPrices | ItemResponseGroup.ItemWithDiscounts | ItemResponseGroup.Inventory
No description provided.