Skip to content

Commit

Permalink
Pass set product website_id so catalog rules are loaded correctly whe…
Browse files Browse the repository at this point in the history
…n customer groups are enabled (#853)
  • Loading branch information
unicoder88 authored and damcou committed Oct 10, 2019
1 parent 4382973 commit af04c5a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ protected function addCustomerGroupsPrices(Product $product, $currencyCode, $wit
$groupId = (int) $group->getData('customer_group_id');

$product->setData('customer_group_id', $groupId);
$product->setData('website_id', $product->getStore()->getWebsiteId());

$discountedPrice = $product->getPriceModel()->getFinalPrice(1, $product);
if ($currencyCode !== $this->baseCurrencyCode) {
Expand Down

0 comments on commit af04c5a

Please sign in to comment.