We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede0d0a commit c4210d5Copy full SHA for c4210d5
app/code/Magento/Catalog/Observer/SetSpecialPriceStartDate.php
@@ -39,8 +39,10 @@ public function execute(\Magento\Framework\Event\Observer $observer)
39
/** @var $product \Magento\Catalog\Model\Product */
40
$product = $observer->getEvent()->getProduct();
41
if ($product->getSpecialPrice() && $product->getSpecialFromDate() === null) {
42
- $product->setData('special_from_date',
43
- $this->localeDate->date()->setTime(0, 0)->format('Y-m-d H:i:s'));
+ $product->setData(
+ 'special_from_date',
44
+ $this->localeDate->date()->setTime(0, 0)->format('Y-m-d H:i:s')
45
+ );
46
}
47
return $this;
48
0 commit comments