Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getArticleSimilars example
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
)
;
$data
[
0
]
[
'links'
]
=
$this
->
getArticleLinks
(
$id
)
;
$data
[
0
]
[
'downloads'
]
=
$this
->
getArticleDownloads
(
$id
)
;
$data
[
0
]
[
'customerGroups'
]
=
$this
->
getArticleCustomerGroups
(
$id
)
;
$data
[
0
]
[
'mainPrices'
]
=
$this
->
getPrices
(
$data
[
0
]
[
'mainDetail'
]
[
'id'
]
,
$tax
)
;
$data
[
0
]
[
'configuratorSet'
]
=
$this
->
getArticleConfiguratorSet
(
$id
)
;
$data
[
0
]
[
'dependencies'
]
=
[
]
;