Merge pull request #2656 from jitendra-webkul/1.0

Catalog price rule issue fixed if discounted and normal price is same
This commit is contained in:
Jitendra Singh 2020-03-13 19:08:08 +05:30 committed by GitHub
commit 65b34add4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ class CatalogRuleProduct
*/
public function insertRuleProduct($rule, $batchCount = 1000, $product = null)
{
if (! (float) $rule->discount_amount)
return;
$productIds = $this->getMatchingProductIds($rule, $product);
$rows = [];