Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getSupplierListingLink example
if
(
strpos
(
$temp
[
'link'
]
, 'http'
)
=== false
)
{
$temp
[
'link'
]
= 'http://' .
$link
->
getLink
(
)
;
}
$data
[
'sLinks'
]
[
]
=
$temp
;
}
$data
[
'sLinks'
]
[
]
=
[
'supplierSearch' => true,
'description' =>
$product
->
getManufacturer
(
)
->
getName
(
)
,
'target' => '_parent',
'link' =>
$this
->
getSupplierListingLink
(
$product
->
getManufacturer
(
)
)
,
]
;
$data
[
'sRelatedArticles'
]
=
[
]
;
foreach
(
$product
->
getRelatedProducts
(
)
as
$relatedProduct
)
{
$data
[
'sRelatedArticles'
]
[
]
=
$this
->
convertListProductStruct
(
$relatedProduct
)
;
}
$data
[
'sSimilarArticles'
]
=
[
]
;
foreach
(
$product
->
getSimilarProducts
(
)
as
$similarProduct
)
{
$data
[
'sSimilarArticles'
]
[
]
=
$this
->
convertListProductStruct
(
$similarProduct
)
;
}