EC-CUBE4 APIドキュメント

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'

Properties

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
mixed

createPurchaseProcessingOrder()

購入処理中の受注を生成する.

public createPurchaseProcessingOrder( $Cart : Cart , $Customer : Customer ) : Order
Parameters
$Cart : Cart
$Customer : Customer
Return values
Order

verifyCart()

public verifyCart( $Cart : Cart ) : bool
Parameters
$Cart : Cart
Return values
bool

isLoginRequired()

注文手続き画面でログインが必要かどうかの判定

public isLoginRequired( ) : bool
Return values
bool

getPurchaseProcessingOrder()

購入処理中の受注を取得する.

public getPurchaseProcessingOrder( [ $preOrderId : null|string = null ] ) : null|Order
Parameters
$preOrderId : null|string = null
Return values
null|Order

getNonMember()

セッションに保持されている非会員情報を取得する.

public getNonMember( ) : Customer

非会員購入時に入力されたお客様情報を返す.

Return values
Customer

removeSession()

public removeSession( ) : mixed
Return values
mixed

updateCustomerInfo()

会員情報の更新日時が受注の作成日時よりも新しければ, 受注の注文者情報を更新する.

public updateCustomerInfo( $Order : Order , $Customer : Customer ) : mixed
Parameters
$Order : Order
$Customer : Customer
Return values
mixed

createPreOrderId()

public createPreOrderId( ) : mixed
Return values
mixed

createOrderItemsFromCartItems()

protected createOrderItemsFromCartItems( $CartItems : Collection|ArrayCollection|\Eccube\Entity\CartItem[] ) : \Eccube\Entity\OrderItem[]
Parameters
$CartItems : Collection|ArrayCollection|\Eccube\Entity\CartItem[]
Return values
\Eccube\Entity\OrderItem[]

setDefaultDelivery()

protected setDefaultDelivery( $Shipping : Shipping ) : mixed
Parameters
$Shipping : Shipping
Return values
mixed

setDefaultPayment()

protected setDefaultPayment( $Order : Order ) : mixed
Parameters
$Order : Order
Return values
mixed

addOrderItems()

protected addOrderItems( $Order : Order , $Shipping : Shipping , $OrderItems : array ) : mixed
Parameters
$Order : Order
$Shipping : Shipping
$OrderItems : array
Return values
mixed

Search results