Beispiel #1
0
         if (strpos($order->getCampaignId(), 'STEG') !== false) {
             $stepcounter = true;
         }
         if (strpos($order->getCampaignId(), 'PRIV') !== false) {
             $dagar = $campaign["dagar"];
             $level = $campaign["levelid"];
         }
     }
     $medlem->setEpostBekraftad(1);
     //medlem valid
     $medlem->addPaidUntil($dagar);
     $medlem->setLevelId($level);
     $medlem->commit();
     $order->sendEmailReciept();
     if ($stepcounter) {
         Medlem::createMemberFile($refId);
     }
     // login the user and skip this page
     if ($order->getTyp() == 'medlem_extend') {
         header('location:/pages/minsida.php');
         //already logged in
     }
     $medlem->loggInCurrentUser();
     header('location:/pages/minsida.php');
     break;
 case "foretag":
     $orderItems = Order::listOrderDataByRefId($refId);
     $foretag = $order->getForetag();
     $msg .= "\n\tTyp: Foretag \n\tId: " . $foretag->getId() . "\n\tNamn: " . $foretag->getNamn() . "\n\tEpost: " . $foretag->getPayerEmail();
     $msg .= "\n\tTelefon: " . $foretag->getPayerPhone() . "\n\tip: " . $order->getIp() . "\n\t" . print_r($orderItems, true);
     Misc::logMotiomera($msg, 'INFO', 'order');