return (int) $dbal->
fetchColumn( 'SELECT default_shipping_address_id
FROM s_user WHERE id = :id
',
['id' =>
$this->session->
offsetGet('sUserId'
)] );
} private function shouldVerifyCaptcha(Shopware_Components_Config
$config): bool
{ return $config->
get('newsletterCaptcha'
) !== 'nocaptcha'
&& !
($config->
get('noCaptchaAfterLogin'
) &&
Shopware()->
Modules()->
Admin()->
sCheckUser());
} private function getBasketQueryBuilder(string
$amount, string
$netAmount): QueryBuilder
{ $queryBuilder =
$this->connection->
createQueryBuilder() ->
select([ 'MIN(d.instock>=b.quantity) as instock',
'MIN(d.instock>=(b.quantity+d.stockmin)) as stockmin',
'MIN(a.laststock) as laststock',
'SUM(d.weight*b.quantity) as weight',
'SUM(IF(a.id,b.quantity,0)) as count_article',