This commit is contained in:
@@ -40,7 +40,7 @@ class SlackNotifySubscriber implements EventSubscriberInterface
|
||||
{
|
||||
$slack = new Client($this->slackWebhookUrl, [
|
||||
'username' => 'CDS-Notify',
|
||||
'channel' => '#general',
|
||||
'channel' => '#online-verkäufe',
|
||||
'link_names' => true,
|
||||
'icon' => ':robot_face:',
|
||||
'allow_markdown' => true,
|
||||
@@ -56,7 +56,7 @@ class SlackNotifySubscriber implements EventSubscriberInterface
|
||||
|
||||
$msg = "Bestellung {$order->getOrderId()}: \n";
|
||||
|
||||
foreach ($order->getData() as $item) {
|
||||
foreach ($order->getData()[0]['positions'] as $item) {
|
||||
if ($item['menge'] > 0 && strlen($item['sku']) > 0) {
|
||||
$msg .= $item['name'];
|
||||
$msg .= ' ' . $item['sku'];
|
||||
|
||||
Reference in New Issue
Block a user