Merge pull request #1768 from prashant-webkul/bugs_patch_1

Fixed issues related to discount calculations
This commit is contained in:
Jitendra Singh 2019-11-14 17:30:02 +05:30 committed by GitHub
commit 49ca89a00d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -433,12 +433,15 @@ abstract class Discount
foreach ($productIDs as $productID) {
foreach ($cart->items as $item) {
$childrens = $item->children;
if ($item->product_id == $productID)
$partialMatch = 1;
}
foreach ($childrens as $children) {
if ($children->product_id == $productID)
$partialMatch = 1;
}
$childrens = $item->children;
foreach ($childrens as $children) {
if ($children->product_id == $productID)
$partialMatch = 1;
}
}
}