Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setFormattedReleaseDate example
if
(
isset
(
$manualPositions
[
$id
]
)
)
{
$product
->
setManualSorting
(
$manualPositions
[
$id
]
)
;
}
$product
->
setFormattedCreatedAt
(
$this
->
formatDate
(
$product
->
getCreatedAt
(
)
)
)
;
$product
->
setFormattedUpdatedAt
(
$this
->
formatDate
(
$product
->
getUpdatedAt
(
)
)
)
;
$product
->
setFormattedReleaseDate
(
$this
->
formatDate
(
$product
->
getReleaseDate
(
)
)
)
;
$product
->
addAttributes
(
$this
->
parseAttributes
(
$product
->
getAttributes
(
)
)
)
;
$product
->
setCreatedAt
(
null
)
;
$product
->
setUpdatedAt
(
null
)
;
$product
->
setReleaseDate
(
null
)
;
$product
->
setPrices
(
null
)
;