Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setServiceCategoryId example
$product
->
setStreamIds
(
$streamIds
)
;
$product
->
setCategoryIds
(
$categoryIds
)
;
return
$product
;
}
private
function
getSalesChannelContext
(
)
: SalesChannelContext
{
$salesChannelEntity
=
new
SalesChannelEntity
(
)
;
$salesChannelEntity
->
setId
(
'salesChannelId'
)
;
$salesChannelEntity
->
setNavigationCategoryId
(
'navigationCategoryId'
)
;
$salesChannelEntity
->
setServiceCategoryId
(
'serviceCategoryId'
)
;
$salesChannelEntity
->
setFooterCategoryId
(
'footerCategoryId'
)
;
return
new
SalesChannelContext
(
Context::
createDefaultContext
(
)
,
'foo',
'bar',
$salesChannelEntity
,
new
CurrencyEntity
(
)
,
new
CustomerGroupEntity
(
)
,
new
TaxCollection
(
)
,
new
PaymentMethodEntity
(
)
,