Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setAvailableCombinations example
$product
->
setCreatedAt
(
null
)
;
$product
->
setUpdatedAt
(
null
)
;
$product
->
setReleaseDate
(
null
)
;
$product
->
setPrices
(
null
)
;
$product
->
setPriceRules
(
null
)
;
$product
->
setCheapestPriceRule
(
null
)
;
$product
->
setCheapestPrice
(
null
)
;
$product
->
setCheapestUnitPrice
(
null
)
;
$product
->
setAvailableCombinations
(
null
)
;
$product
->
setFullConfiguration
(
null
)
;
$product
->
resetStates
(
)
;
if
(
!
$this
->
isValid
(
$shop
,
$product
)
)
{
continue
;
}
$result
[
$number
]
=
$product
;
}
return
$result
;
}