Skip to content

Commit

Permalink
käytetään pupesoft_logia
Browse files Browse the repository at this point in the history
  • Loading branch information
jonikanerva committed Jun 17, 2016
1 parent 00fa1ec commit e936ade
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions magento_toimita_tilaus.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@

if (!function_exists("log_message")) {
function log_message($message) {
$now = date('d.m.y H:i:s');
$message = utf8_encode($message);

error_log("{$now}: {$message}\n", 3, '/tmp/magento_order_log.txt');
pupesoft_log('magento_orders', $message);
}
}

if (!isset($magento_api_toimituskuittaus_viestit) or count($magento_api_toimituskuittaus_viestit) == 0) {
if (empty($magento_api_toimituskuittaus_viestit)) {
$magento_api_toimituskuittaus_viestit = array();
}

$default_kuittaukset = array(
"nouto" => "Tilauksesi on noudettavissa.",
"toimitus" => "Your order is shipped!");
"toimitus" => "Your order is shipped!"
);

$kuittaukset = array_merge($default_kuittaukset, $magento_api_toimituskuittaus_viestit);

$magento_api_ord = (int) $magento_api_ord;
Expand Down

0 comments on commit e936ade

Please sign in to comment.