Skip to content
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

Merged
merged 5 commits into from
Dec 22, 2017

Conversation

vkrashenko
Copy link
Contributor

No description provided.

@vkrashenko vkrashenko self-assigned this Dec 15, 2017
@CLAassistant
Copy link

CLAassistant commented Dec 15, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@tatarincev tatarincev left a 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);
Copy link
Contributor

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

@vkrashenko
Copy link
Contributor Author

cartbuildertest

@vkrashenko
Copy link
Contributor Author

"The product for LineItem added to the cart was removed"

On this case we have message that product is unavailable

image

@tatarincev tatarincev merged commit 041c7a6 into dev Dec 22, 2017
@tatarincev tatarincev deleted the dev-addProductsToLineItems branch December 22, 2017 12:10
@tatarincev
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants