90 $store = $this->storeManager->getStore(
$observer->getEvent()->getStoreId());
92 if (
$observer->getEvent()->hasCustomerGroupId()) {
95 if ($this->customerSession->isLoggedIn()) {
96 $groupId = $this->customerSession->getCustomerGroupId();
98 $groupId = $this->groupManagement->getNotLoggedInGroup()->getId();
102 $date = new \DateTime(
$observer->getEvent()->getDate());
104 $date = (new \DateTime())->setTimestamp($this->localeDate->scopeTimeStamp(
$store));
111 if (!$this->rulePricesStorage->hasRulePrice($key)) {
117 $rulePrices = $this->resourceRuleFactory->create()->getRulePrices(
125 $this->rulePricesStorage->setRulePrice(
__construct(RulePricesStorage $rulePricesStorage, \Magento\CatalogRule\Model\ResourceModel\RuleFactory $resourceRuleFactory, StoreManagerInterface $storeManager, TimezoneInterface $localeDate, CustomerModelSession $customerSession, GroupManagementInterface $groupManagement)
execute(\Magento\Framework\Event\Observer $observer)