Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getArticleData example
/** * Internal helper function to get the product data of the passed id. * * @param int $id * * @return array */
protected
function
getArticle
(
$id
)
{
$data
=
$this
->
getArticleData
(
$id
)
;
$tax
=
$data
[
0
]
[
'tax'
]
;
$data
[
0
]
[
'categories'
]
=
$this
->
getArticleCategories
(
$id
)
;
$data
[
0
]
[
'seoCategories'
]
=
$this
->
getArticleSeoCategories
(
$id
)
;
$data
[
0
]
[
'similar'
]
=
$this
->
getArticleSimilars
(
$id
)
;
$data
[
0
]
[
'streams'
]
=
$this
->
getArticleRelatedProductStreams
(
$id
)
;
$data
[
0
]
[
'related'
]
=
$this
->
getArticleRelated
(
$id
)
;
$data
[
0
]
[
'images'
]
=
$this
->
getArticleImages
(
$id
)
;