Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setFooterCategoryId example
$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
(
)
,
new
ShippingMethodEntity
(
)
,