Catalog price rule issue fixed if discounted and normal price is same
This commit is contained in:
parent
9b60f0b8ec
commit
4e10d706f5
|
|
@ -98,8 +98,8 @@ class CatalogRuleProductPrice
|
|||
|
||||
foreach ($dates as $key => $date) {
|
||||
if ((! $row->starts_from || $date >= $row->starts_from)
|
||||
&& (! $row->ends_till || $date <= $row->ends_till))
|
||||
{
|
||||
&& (! $row->ends_till || $date <= $row->ends_till)
|
||||
) {
|
||||
$priceKey = $date->getTimestamp() . '-' . $productKey;
|
||||
|
||||
if (isset($endRuleFlags[$priceKey])) {
|
||||
|
|
|
|||
|
|
@ -495,7 +495,7 @@ abstract class AbstractType
|
|||
}
|
||||
|
||||
if (! (float) $this->product->special_price) {
|
||||
if ($rulePrice) {
|
||||
if ($rulePrice && $rulePrice->price < $this->product->price) {
|
||||
$this->product->special_price = $rulePrice->price;
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue