Skip to content

Commit

Permalink
Fixed #3544 catalog pricing product conditions potentially not applying
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Sep 5, 2024
1 parent c06f90a commit 8c9ebd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft Commerce

## Unreleased

- Fixed a bug where catalog pricing rules could ignore product conditions. ([#3544](https://github.com/craftcms/commerce/issues/3544))

## 5.1.0 - 2024-09-04

### Store Management
Expand Down
2 changes: 1 addition & 1 deletion src/models/CatalogPricingRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function getPurchasableIds(): ?array

$this->_purchasableIds = $productVariantIds;

$variantIds = null;
$variantIds = $productVariantIds;
if (!empty($this->getVariantCondition()->getConditionRules())) {
$variantQuery = Variant::find();
/** @var CatalogPricingRuleVariantCondition $variantCondition */
Expand Down

0 comments on commit 8c9ebd8

Please sign in to comment.