Skip to content

Commit 83136b1

Browse files
committed
Fix file names and final price retrieval
1 parent 4970423 commit 83136b1

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

src/Service/ProductsUpdateService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Magento\Catalog\Model\ResourceModel\Product as ProductResource;
99
use Magento\Catalog\Model\ResourceModel\Product\Collection as ProductCollection;
1010
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory as ProductCollectionFactory;
11-
use Magento\Framework\Stdlib\DateTime\TimezoneInterface;
1211
use Magento\Store\Api\Data\StoreInterface;
1312
use Magento\Store\Model\StoreManagerInterface;
1413

@@ -69,7 +68,7 @@ private function getProductsToCheck(StoreInterface $store): array
6968

7069
private function isProductSale(ProductInterface $product): bool
7170
{
72-
$finalPrice = (float)$product->getFinalPrice();
71+
$finalPrice = (float)$product->getData('final_price');
7372
$originalPrice = (float)$product->getPrice();
7473
if (!$finalPrice || !$originalPrice) {
7574
return false;
File renamed without changes.

0 commit comments

Comments
 (0)