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-instant-purchase
Model
ShippingAddressChoose
DefaultShippingAddressChooser.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\InstantPurchase\Model\ShippingAddressChoose
;
7
8
use
Magento\Customer\Model\Customer
;
9
use
Magento\Customer\Model\Address
;
10
14
class
DefaultShippingAddressChooser
implements
ShippingAddressChooserInterface
15
{
19
public
function
choose
(
Customer
$customer
)
20
{
21
$address
=
$customer
->getDefaultShippingAddress();
22
return
$address
?:
null
;
23
}
24
}
$customer
$customer
Definition:
customers.php:11
Magento\Customer\Model\Address
Definition:
AbstractAddress.php:7
Magento\InstantPurchase\Model\ShippingAddressChoose\DefaultShippingAddressChooser\choose
choose(Customer $customer)
Definition:
DefaultShippingAddressChooser.php:19
Magento\InstantPurchase\Model\ShippingAddressChoose\DefaultShippingAddressChooser
Definition:
DefaultShippingAddressChooser.php:14
Magento\InstantPurchase\Model\ShippingAddressChoose\ShippingAddressChooserInterface
Definition:
ShippingAddressChooserInterface.php:17
$address
$address
Definition:
customer.php:38
Magento\Customer\Model\Customer
Magento\InstantPurchase\Model\ShippingAddressChoose
Definition:
DefaultShippingAddressChooser.php:6
Magento\Customer\Model\Customer
Definition:
Customer.php:46