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

M2 - fix tax details issue for the simple products. #113

Merged

Conversation

nmalevanec
Copy link
Contributor

No description provided.

@p-bystritsky p-bystritsky merged commit 4f10183 into main Aug 16, 2023
@@ -124,10 +124,9 @@ private function processQuoteItems(CartInterface $quote): void
continue;
}
$parentProduct = null;
if ($item->getParentItem() !== null) {
if ($item->getParentItem()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Could you is_null to avoid doing a truthy test

if (!is_null($item->getParentItem()))

@@ -67,6 +67,7 @@ public function getQuote(
} catch (LocalizedException $e) {
return $this->quoteResultBuilder->createErrorResult($e->getMessage());
}
$quote->collectTotals();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: For my personal knowledge this function will compute the totals?

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