Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-checkout
Observer
SalesQuoteSaveAfterObserver.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Observer
;
7
8
use
Magento\Framework\Event\ObserverInterface
;
9
10
class
SalesQuoteSaveAfterObserver
implements
ObserverInterface
11
{
15
protected
$checkoutSession
;
16
21
public
function
__construct
(\
Magento
\Checkout\Model\Session
$checkoutSession
)
22
{
23
$this->checkoutSession =
$checkoutSession
;
24
}
25
30
public
function
execute
(\
Magento
\Framework\Event\Observer
$observer
)
31
{
32
$quote
=
$observer
->getEvent()->getQuote();
33
/* @var $quote \Magento\Quote\Model\Quote */
34
if
(
$quote
->getIsCheckoutCart()) {
35
$this->checkoutSession->getQuoteId(
$quote
->getId());
36
}
37
}
38
}
Magento\Checkout\Observer\SalesQuoteSaveAfterObserver
Definition:
SalesQuoteSaveAfterObserver.php:10
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
$quote
$quote
Definition:
paypal_quote.php:17
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento\Checkout\Observer
Definition:
LoadCustomerQuoteObserver.php:6
Magento
Magento\Checkout\Observer\SalesQuoteSaveAfterObserver\$checkoutSession
$checkoutSession
Definition:
SalesQuoteSaveAfterObserver.php:15
Magento\Checkout\Observer\SalesQuoteSaveAfterObserver\execute
execute(\Magento\Framework\Event\Observer $observer)
Definition:
SalesQuoteSaveAfterObserver.php:30
Magento\Checkout\Observer\SalesQuoteSaveAfterObserver\__construct
__construct(\Magento\Checkout\Model\Session $checkoutSession)
Definition:
SalesQuoteSaveAfterObserver.php:21