diff --git a/Block/Adminhtml/AbandonedCart/Edit/Form.php b/Block/Adminhtml/AbandonedCart/Edit/Form.php index c0fb0d2..ddc5a17 100644 --- a/Block/Adminhtml/AbandonedCart/Edit/Form.php +++ b/Block/Adminhtml/AbandonedCart/Edit/Form.php @@ -131,14 +131,14 @@ public function __construct( GroupRepositoryInterface $groupRepository, array $data = [] ) { - $this->addressConfig = $addressConfig; - $this->priceCurrency = $priceCurrency; - $this->emailIdentity = $emailIdentity; - $this->emailTemplate = $emailTemplate; - $this->taxConfig = $taxConfig; + $this->addressConfig = $addressConfig; + $this->priceCurrency = $priceCurrency; + $this->emailIdentity = $emailIdentity; + $this->emailTemplate = $emailTemplate; + $this->taxConfig = $taxConfig; $this->logCollectionFactory = $logCollectionFactory; $this->helperEmailMarketing = $helperEmailMarketing; - $this->groupRepository = $groupRepository; + $this->groupRepository = $groupRepository; parent::__construct($context, $registry, $formFactory, $data); } @@ -189,10 +189,10 @@ public function getHelperEmailMarketing() */ public function getSubtotal(Quote $quote, $inclTax = false) { - $address = $quote->isVirtual() ? $quote->getBillingAddress() : $quote->getShippingAddress(); + $address = $quote->isVirtual() ? $quote->getBillingAddress() : $quote->getShippingAddress(); $subtotal = $inclTax ? $address->getSubtotalInclTax() : $address->getSubtotal(); - return $this->formatPrice($subtotal, $quote->getId()); + return $this->formatPrice($subtotal, $quote->getStoreId()); } /** @@ -362,8 +362,8 @@ public function isSingleStoreMode() public function getStoreName(Quote $quote) { $storeId = $quote->getStoreId(); - $store = $this->_storeManager->getStore($storeId); - $name = [$store->getWebsite()->getName(), $store->getGroup()->getName(), $store->getName()]; + $store = $this->_storeManager->getStore($storeId); + $name = [$store->getWebsite()->getName(), $store->getGroup()->getName(), $store->getName()]; return implode('
', $name); }