Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getShippingDateLatest example
return
$salesChannelContext
;
}
private
function
convertDeliveries
(
OrderDeliveryCollection
$orderDeliveries
, LineItemCollection
$lineItems
)
: DeliveryCollection
{
$cartDeliveries
=
new
DeliveryCollection
(
)
;
foreach
(
$orderDeliveries
as
$orderDelivery
)
{
$deliveryDate
=
new
DeliveryDate
(
$orderDelivery
->
getShippingDateEarliest
(
)
,
$orderDelivery
->
getShippingDateLatest
(
)
)
;
$deliveryPositions
=
new
DeliveryPositionCollection
(
)
;
if
(
$orderDelivery
->
getPositions
(
)
=== null
)
{
continue
;
}
foreach
(
$orderDelivery
->
getPositions
(
)
as
$position
)
{
if
(
$position
->
getOrderLineItem
(
)
=== null
)
{
continue
;
}