Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
basketHasMixedProducts example
$sOrderVariables
[
'sBasket'
]
=
$normalizer
->
normalize
(
$sOrderVariables
[
'sBasketView'
]
)
;
$this
->session
[
'sOrderVariables'
]
=
new
ArrayObject
(
$sOrderVariables
, ArrayObject::ARRAY_AS_PROPS
)
;
$agbChecked
=
$this
->
Request
(
)
->
getParam
(
'sAGB'
)
;
if
(
!
empty
(
$agbChecked
)
)
{
$this
->
View
(
)
->
assign
(
'sAGBChecked', true
)
;
}
$this
->
View
(
)
->
assign
(
'sTargetAction', 'confirm'
)
;
$this
->
View
(
)
->
assign
(
'hasMixedArticles',
$this
->
basketHasMixedProducts
(
$this
->
View
(
)
->
getAssign
(
'sBasket'
)
)
)
;
$this
->
View
(
)
->
assign
(
'hasServiceArticles',
$this
->
basketHasServiceProducts
(
$this
->
View
(
)
->
getAssign
(
'sBasket'
)
)
)
;
if
(
Shopware
(
)
->
Config
(
)
->
get
(
'showEsdWarning'
)
)
{
$this
->
View
(
)
->
assign
(
'hasEsdArticles',
$this
->
basketHasEsdProducts
(
$this
->
View
(
)
->
getAssign
(
'sBasket'
)
)
)
;
}
$serviceChecked
=
$this
->
Request
(
)
->
getParam
(
'serviceAgreementChecked'
)
;
if
(
!
empty
(
$serviceChecked
)
)
{
$this
->
View
(
)
->
assign
(
'serviceAgreementChecked', true
)
;
}