Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
prepareAffiliateTracking example
if
(
$context
->
getCustomer
(
)
)
{
return
$this
->
redirectToRoute
(
'frontend.account.home.page'
)
;
}
try
{
if
(
!
$data
->
has
(
'differentShippingAddress'
)
)
{
$data
->
remove
(
'shippingAddress'
)
;
}
$data
->
set
(
'storefrontUrl',
$this
->
getConfirmUrl
(
$context
,
$request
)
)
;
$data
=
$this
->
prepareAffiliateTracking
(
$data
,
$request
->
getSession
(
)
)
;
if
(
$data
->
getBoolean
(
'createCustomerAccount'
)
)
{
$data
->
set
(
'guest', false
)
;
}
else
{
$data
->
set
(
'guest', true
)
;
}
$this
->registerRoute->
register
(
$data
->
toRequestDataBag
(
)
,
$context
,
false,