catch (InvalidOrderNumberException
$exception) { // Explicit empty catch
} catch (TypeError
$exception) { // Explicit empty catch
} } if ($element['name'
] === 'inquiry' && !
empty($this->
Request()->sInquiry
)) { switch ($this->
Request()->sInquiry
) { case 'basket':
$text =
Shopware()->
Snippets()->
getNamespace('frontend/detail/comment'
)->
get('InquiryTextBasket'
);
$getBasket =
Shopware()->
Modules()->
Basket()->
sGetBasket();
foreach ($getBasket[CartKey::POSITIONS
] ??
[] as $basketRow) { if (empty($basketRow['modus'
])) { $text .=
sprintf( "\n%s x %s (%s) - %s %s",
$basketRow['quantity'
],
$basketRow['articlename'
],
$basketRow['ordernumber'
],
$basketRow['price'
],
Shopware()->
System()->sCurrency
['currency'
] );
} }