Beispiel #1
0
 public static function deleteProspectOkOrder($order_id)
 {
     if (!$order_id) {
         return false;
     }
     $o = Order::model()->fillFromDbPk($order_id);
     $p = new Prospect();
     $p->prospectExists($o->customer_id, $o->campaign_id);
     // update silver pop record to 'is customer' and delete
     if ($p->prospect_id) {
         $p->updateSilverpopCustomer();
         $p->delete();
     }
     unset($p);
     unset($o);
 }