Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setListingVariationPrices example
$product
->
setFilterConfiguration
(
$this
->
buildFilterConfiguration
(
$variantFacet
->
getExpandGroupIds
(
)
,
$product
->
getConfiguration
(
)
,
$product
->
getFullConfiguration
(
)
)
)
;
if
(
\
array_key_exists
(
$product
->
getNumber
(
)
,
$listingPrices
)
)
{
$product
->
setListingVariationPrices
(
$listingPrices
[
$product
->
getNumber
(
)
]
)
;
}
if
(
\
array_key_exists
(
$number
,
$availability
)
)
{
$product
->
setAvailability
(
$availability
[
$number
]
)
;
}
}
}
private
function
formatDate
(
?DateTimeInterface
$date
= null
)
: ?string
{