Skip to content

Commit 58b3d98

Browse files
#39169: Special Price To Date is wrongly validated on applySpecialPrice
1 parent 8ace126 commit 58b3d98

File tree

1 file changed

+0
-5
lines changed
  • app/code/Magento/Catalog/Model/Product/Type

1 file changed

+0
-5
lines changed

app/code/Magento/Catalog/Model/Product/Type/Price.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,6 @@ public function calculatePrice(
602602

603603
$finalPrice = $basePrice;
604604

605-
if ($specialPriceTo && date('H:i:s', strtotime($specialPriceTo)) !== '00:00:00') {
606-
$dateToTimestamp = strtotime($specialPriceTo);
607-
$specialPriceTo = date('Y-m-d H:i:s', $dateToTimestamp - 86400);
608-
}
609-
610605
$finalPrice = $this->calculateSpecialPrice(
611606
$finalPrice,
612607
$specialPrice,

0 commit comments

Comments
 (0)