OrderHelper Uses ControllerTrait
Table of Contents
SESSION_NON_MEMBER | 'eccube.front.shopping.nonmember' | |
---|---|---|
SESSION_NON_MEMBER_ADDRESSES | 'eccube.front.shopping.nonmember.customeraddress' | |
SESSION_ORDER_ID | 'eccube.front.shopping.order.id' | |
SESSION_CART_DIVIDE_FLAG | 'eccube.front.cart.divide' | |
$container | ContainerInterface | |
$session | SessionInterface | |
$prefRepository | PrefRepository | |
$orderRepository | OrderRepository | |
$orderItemTypeRepository | OrderItemTypeRepository | |
__construct() | mixed | |
createPurchaseProcessingOrder() | 購入処理中の受注を生成する. | Order |
verifyCart() | bool | |
isLoginRequired() | 注文手続き画面でログインが必要かどうかの判定 | bool |
getPurchaseProcessingOrder() | 購入処理中の受注を取得する. | null|Order |
getNonMember() | セッションに保持されている非会員情報を取得する. | Customer |
initializeOrder() | Order|null | |
removeSession() | mixed | |
updateCustomerInfo() | 会員情報の更新日時が受注の作成日時よりも新しければ, 受注の注文者情報を更新する. | mixed |
createPreOrderId() | mixed | |
setCustomer() | mixed | |
createOrderItemsFromCartItems() | \Eccube\Entity\OrderItem[] | |
createShippingFromCustomer() | Shipping | |
setDefaultDelivery() | mixed | |
setDefaultPayment() | mixed | |
addOrderItems() | mixed |
Constants
SESSION_NON_MEMBER
public
string
$SESSION_NON_MEMBER
= 'eccube.front.shopping.nonmember'
SESSION_NON_MEMBER_ADDRESSES
public
string
$SESSION_NON_MEMBER_ADDRESSES
= 'eccube.front.shopping.nonmember.customeraddress'
SESSION_ORDER_ID
public
string
$SESSION_ORDER_ID
= 'eccube.front.shopping.order.id'
SESSION_CART_DIVIDE_FLAG
public
string
$SESSION_CART_DIVIDE_FLAG
= 'eccube.front.cart.divide'
Tags
Properties
$container
protected
ContainerInterface
$container
$session
protected
SessionInterface
$session
$prefRepository
protected
PrefRepository
$prefRepository
$orderRepository
protected
OrderRepository
$orderRepository
$orderItemTypeRepository
protected
OrderItemTypeRepository
$orderItemTypeRepository
Methods
__construct()
public
__construct(
$container :
ContainerInterface
, $entityManager :
EntityManagerInterface
, $orderRepository :
OrderRepository
, $orderItemTypeRepository :
OrderItemTypeRepository
, $orderStatusRepository :
OrderStatusRepository
, $deliveryRepository :
DeliveryRepository
, $paymentRepository :
PaymentRepository
, $deviceTypeRepository :
DeviceTypeRepository
, $prefRepository :
PrefRepository
, $mobileDetector :
MobileDetector
, $session :
SessionInterface
)
: mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $orderRepository : OrderRepository
- $orderItemTypeRepository : OrderItemTypeRepository
- $orderStatusRepository : OrderStatusRepository
- $deliveryRepository : DeliveryRepository
- $paymentRepository : PaymentRepository
- $deviceTypeRepository : DeviceTypeRepository
- $prefRepository : PrefRepository
- $mobileDetector : MobileDetector
- $session : SessionInterface
Return values
mixedcreatePurchaseProcessingOrder()
購入処理中の受注を生成する.
public
createPurchaseProcessingOrder(
$Cart :
Cart
, $Customer :
Customer
)
: Order
Parameters
Return values
OrderverifyCart()
public
verifyCart(
$Cart :
Cart
)
: bool
Parameters
- $Cart : Cart
Return values
boolisLoginRequired()
注文手続き画面でログインが必要かどうかの判定
public
isLoginRequired(
)
: bool
Return values
boolgetPurchaseProcessingOrder()
購入処理中の受注を取得する.
public
getPurchaseProcessingOrder(
[ $preOrderId :
null|string
= null ]
)
: null|Order
Parameters
- $preOrderId : null|string = null
Return values
null|OrdergetNonMember()
セッションに保持されている非会員情報を取得する.
public
getNonMember(
)
: Customer
非会員購入時に入力されたお客様情報を返す.
Return values
CustomerinitializeOrder()
public
initializeOrder(
$Cart :
Cart
, $Customer :
Customer
)
: Order|null
Parameters
Return values
Order|nullremoveSession()
public
removeSession(
)
: mixed
Return values
mixedupdateCustomerInfo()
会員情報の更新日時が受注の作成日時よりも新しければ, 受注の注文者情報を更新する.
public
updateCustomerInfo(
$Order :
Order
, $Customer :
Customer
)
: mixed
Parameters
Return values
mixedcreatePreOrderId()
public
createPreOrderId(
)
: mixed
Return values
mixedsetCustomer()
protected
setCustomer(
$Order :
Order
, $Customer :
Customer
)
: mixed
Parameters
Return values
mixedcreateOrderItemsFromCartItems()
protected
createOrderItemsFromCartItems(
$CartItems :
Collection|ArrayCollection|\Eccube\Entity\CartItem[]
)
: \Eccube\Entity\OrderItem[]
Parameters
- $CartItems : Collection|ArrayCollection|\Eccube\Entity\CartItem[]
Return values
\Eccube\Entity\OrderItem[]createShippingFromCustomer()
protected
createShippingFromCustomer(
$Customer :
Customer
)
: Shipping
Parameters
- $Customer : Customer
Return values
ShippingsetDefaultDelivery()
protected
setDefaultDelivery(
$Shipping :
Shipping
)
: mixed
Parameters
- $Shipping : Shipping
Return values
mixedsetDefaultPayment()
protected
setDefaultPayment(
$Order :
Order
)
: mixed
Parameters
- $Order : Order
Return values
mixedaddOrderItems()
protected
addOrderItems(
$Order :
Order
, $Shipping :
Shipping
, $OrderItems :
array
)
: mixed