Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #178 from DivanteLtd/develop
Browse files Browse the repository at this point in the history
Merge develop branch
  • Loading branch information
afirlejczyk authored Dec 20, 2019
2 parents 2fb27c2 + ef56556 commit c171485
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Unreleased


## [1.8.3] (2019.12.19)

### Fixes
- support table prefix with review_entity
- fix exporting final_price and price for configurable products when `final_price` equals `0`

## [1.8.2] (2019.11.29)

### Fixes
- fix notice undefined final_price

## [1.8.1] (2019.11.28)

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "Agata",
"email": "[email protected]"
}],
"version": "1.8.2",
"version": "1.8.3",
"keywords": [
"magento",
"magento2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,14 @@ private function prepareConfigurableProduct(array $productDTO)

if (!empty($childPrice)) {
$finalPrice = min($finalPrice);
$productDTO['final_price'] =
isset($productDTO['final_price']) ? min($finalPrice, $productDTO['final_price']) : $finalPrice;

if (!$hasPrice) {
$minPrice = min($childPrice);
$productDTO['price'] = $minPrice;
$productDTO['regular_price'] = $minPrice;
$productDTO['final_price'] = $finalPrice;
} else {
$productDTO['final_price'] = min($finalPrice, $productDTO['final_price']);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function getEntityId(): int
if (null === $this->entityId) {
$connection = $this->getConnection();
$select = $connection->select()
->from('review_entity', ['entity_id'])
->from($this->resource->getTableName('review_entity'), ['entity_id'])
->where('entity_code = :entity_code');

$entityId = $connection->fetchOne(
Expand Down

0 comments on commit c171485

Please sign in to comment.