Skip to content

Commit 991c7fc

Browse files
authored
Merge pull request #9 from jsm222/master
Fix for issue: #8
2 parents 0170938 + f66ce32 commit 991c7fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model/Autocomplete/SearchDataProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ public function getItems()
144144

145145
$resultItem = $this->itemFactory->create([
146146
'title' => $product->getName(),
147-
'price' => $this->priceCurrency->format($product->getFinalPrice(), false),
148-
'special_price' => $this->priceCurrency->format($product->getSpecialPrice(), false),
147+
'price' => $this->priceCurrency->format($product->getPriceInfo()->getPrice('regular_price')->getAmount()->getValue(),false),
148+
'special_price' => $this->priceCurrency->format($product->getPriceInfo()->getPrice('special_price')->getAmount()->getValue(),false),
149149
'has_special_price' => $product->getSpecialPrice() > 0 ? true : false,
150150
'image' => $image,
151151
'url' => $product->getProductUrl()

0 commit comments

Comments
 (0)