Skip to content

Instantly share code, notes, and snippets.

@gebi84
Created August 24, 2016 13:56
Show Gist options
  • Save gebi84/abbf0c447d2e109e4d08d66c4a46f909 to your computer and use it in GitHub Desktop.
Save gebi84/abbf0c447d2e109e4d08d66c4a46f909 to your computer and use it in GitHub Desktop.
<?php
define('TL_SCRIPT', 'index.php');
require_once '../system/initialize.php';
/**
* @var $objNotification NotificationCenter\Model\Notification
*/
$objNotification = \NotificationCenter\Model\Notification::findOneById(4);
$arrTokens = array();
$order = \Isotope\Model\ProductCollection\Order::findOneById(1115);
$arrTokens = $order->getNotificationTokens($objNotification->id);
if (null !== $objNotification) {
$objNotification->send($arrTokens, 'de'); // Language is optional
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment