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-quote
Model
GuestCart
GuestCartTotalRepository.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Quote\Model\GuestCart
;
8
9
use
Magento\Quote\Api\CartTotalRepositoryInterface
;
10
use
Magento\Quote\Api\GuestCartTotalRepositoryInterface
;
11
use
Magento\Quote\Model\QuoteIdMask
;
12
use Magento\Quote\Model\QuoteIdMaskFactory;
13
17
class
GuestCartTotalRepository
implements
GuestCartTotalRepositoryInterface
18
{
22
private
$quoteIdMaskFactory;
23
27
private
$cartTotalRepository;
28
35
public
function
__construct
(
36
CartTotalRepositoryInterface
$cartTotalRepository,
37
QuoteIdMaskFactory $quoteIdMaskFactory
38
) {
39
$this->cartTotalRepository = $cartTotalRepository;
40
$this->quoteIdMaskFactory = $quoteIdMaskFactory;
41
}
42
46
public
function
get
(
$cartId
)
47
{
49
$quoteIdMask
= $this->quoteIdMaskFactory->create()->load(
$cartId
,
'masked_id'
);
50
return
$this->cartTotalRepository->get(
$quoteIdMask
->getQuoteId());
51
}
52
}
$quoteIdMask
$quoteIdMask
Definition:
quote_with_bundle_and_options_rollback.php:22
Magento\Quote\Model\GuestCart
Definition:
GuestBillingAddressManagement.php:6
$cartId
$cartId
Definition:
quote.php:22
Magento\Quote\Model\GuestCart\GuestCartTotalRepository
Definition:
GuestCartTotalRepository.php:17
Magento\Quote\Api\CartTotalRepositoryInterface
Definition:
CartTotalRepositoryInterface.php:13
Magento\Quote\Model\GuestCart\GuestCartTotalRepository\__construct
__construct(CartTotalRepositoryInterface $cartTotalRepository, QuoteIdMaskFactory $quoteIdMaskFactory)
Definition:
GuestCartTotalRepository.php:35
Magento\Quote\Model\QuoteIdMask
Definition:
QuoteIdMask.php:15
Magento\Quote\Api\GuestCartTotalRepositoryInterface
Definition:
GuestCartTotalRepositoryInterface.php:14