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
Model
GuestTotalsInformationManagement.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Model
;
7
8
class
GuestTotalsInformationManagement
implements
\Magento\Checkout\Api\GuestTotalsInformationManagementInterface
9
{
13
protected
$quoteIdMaskFactory
;
14
18
protected
$totalsInformationManagement
;
19
25
public
function
__construct
(
26
\
Magento
\
Quote
\Model\QuoteIdMaskFactory
$quoteIdMaskFactory
,
27
\
Magento
\Checkout\Api\TotalsInformationManagementInterface
$totalsInformationManagement
28
) {
29
$this->quoteIdMaskFactory =
$quoteIdMaskFactory
;
30
$this->totalsInformationManagement =
$totalsInformationManagement
;
31
}
32
36
public
function
calculate
(
37
$cartId
,
38
\
Magento
\Checkout\Api\Data\
TotalsInformationInterface
$addressInformation
39
) {
41
$quoteIdMask
= $this->quoteIdMaskFactory->create()->load(
$cartId
,
'masked_id'
);
42
return
$this->totalsInformationManagement->calculate(
43
$quoteIdMask
->getQuoteId(),
44
$addressInformation
45
);
46
}
47
}
Magento\Checkout\Api\GuestTotalsInformationManagementInterface\calculate
calculate( $cartId, \Magento\Checkout\Api\Data\TotalsInformationInterface $addressInformation)
$quoteIdMask
$quoteIdMask
Definition:
quote_with_bundle_and_options_rollback.php:22
Magento\Checkout\Model\GuestTotalsInformationManagement
Definition:
GuestTotalsInformationManagement.php:8
Magento\Checkout\Model\GuestTotalsInformationManagement\$totalsInformationManagement
$totalsInformationManagement
Definition:
GuestTotalsInformationManagement.php:18
$cartId
$cartId
Definition:
quote.php:22
Magento\Checkout\Api\GuestTotalsInformationManagementInterface
Definition:
GuestTotalsInformationManagementInterface.php:13
Magento
Magento\Framework\DB\Platform\Quote
Definition:
Quote.php:13
Magento\Checkout\Model\GuestTotalsInformationManagement\$quoteIdMaskFactory
$quoteIdMaskFactory
Definition:
GuestTotalsInformationManagement.php:13
Magento\Checkout\Api\Data\TotalsInformationInterface
Definition:
TotalsInformationInterface.php:13
Magento\Checkout\Model
Definition:
CartTest.php:6
Magento\Checkout\Model\GuestTotalsInformationManagement\__construct
__construct(\Magento\Quote\Model\QuoteIdMaskFactory $quoteIdMaskFactory, \Magento\Checkout\Api\TotalsInformationManagementInterface $totalsInformationManagement)
Definition:
GuestTotalsInformationManagement.php:25