Fixed issues related to discount calculations
This commit is contained in:
parent
d17191efe0
commit
b861435554
|
|
@ -433,6 +433,10 @@ abstract class Discount
|
||||||
|
|
||||||
foreach ($productIDs as $productID) {
|
foreach ($productIDs as $productID) {
|
||||||
foreach ($cart->items as $item) {
|
foreach ($cart->items as $item) {
|
||||||
|
if ($item->product_id == $productID)
|
||||||
|
$partialMatch = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$childrens = $item->children;
|
$childrens = $item->children;
|
||||||
|
|
||||||
foreach ($childrens as $children) {
|
foreach ($childrens as $children) {
|
||||||
|
|
@ -441,7 +445,6 @@ abstract class Discount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($channelBased && $customerGroupBased && $timeBased && $conditionsBased) {
|
if ($channelBased && $customerGroupBased && $timeBased && $conditionsBased) {
|
||||||
if ($rule->uses_attribute_conditions == 1 && $partialMatch) {
|
if ($rule->uses_attribute_conditions == 1 && $partialMatch) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue