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
magento2-base
dev
tests
integration
testsuite
Magento
Braintree
_files
paypal_quote.php
Go to the documentation of this file.
1
<?php
7
use
Magento\Quote\Api\CartRepositoryInterface
;
8
use
Magento\Quote\Api\Data\CartInterface
;
9
use
Magento\Store\Model\StoreManagerInterface
;
10
11
require
__DIR__
.
'/paypal_vault_token.php'
;
12
14
$storeManager
=
$objectManager
->get(StoreManagerInterface::class);
15
17
$quote
=
$objectManager
->get(CartInterface::class);
18
$quote
->setStoreId(
$storeManager
->getStore()->getId())
19
->setCustomerIsGuest(
false
)
20
->setCustomerId(
$customer
->getId());
21
23
$quoteRepository
=
$objectManager
->get(CartRepositoryInterface::class);
24
$quoteRepository
->save(
$quote
);
Magento\Quote\Api\Data\CartInterface
Definition:
CartInterface.php:13
$objectManager
$objectManager
Definition:
bootstrap.php:17
$customer
$customer
Definition:
customers.php:11
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
$quote
$quote
Definition:
paypal_quote.php:17
$storeManager
$storeManager
Definition:
paypal_quote.php:14
Magento\Store\Model\StoreManagerInterface
Definition:
StoreManagerInterface.php:17
Magento\Quote\Api\CartRepositoryInterface
Definition:
CartRepositoryInterface.php:13
$quoteRepository
$quoteRepository
Definition:
paypal_quote.php:23