Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
fetchCategoryListing example
if
(
$category
instanceof Category
)
{
$productStream
=
$category
->
getProductStream
(
)
;
if
(
$productStream
)
{
$result
=
$this
->
fetchStreamListing
(
$categoryId
,
$productStream
->
getId
(
)
)
;
$this
->
setSearchResultResponse
(
$result
)
;
return
;
}
}
$result
=
$this
->
fetchCategoryListing
(
)
;
$this
->
setSearchResultResponse
(
$result
)
;
}
/** * @return void */
public
function
getCategoryAction
(
)
{
$categoryId
=
(int)
$this
->
Request
(
)
->
getParam
(
'categoryId'
)
;
$category
=
$this
->
getCategoryById
(
$categoryId
)
;