Current time: 11-27-2024, 05:49 PM Hello There, Guest! (LoginRegister)


Post Reply 
API zu ISCP
Author Message
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #8
RE: API zu ISCP
[/quote]
Kannste mir da sagen wie ihr das realisiert habt bzw. kleine Hilfestellung geben.
[/quote]

Ich übergebe nur die Kundendaten und habe in gsales die Produkte angelegt die ich diesem Kunden dann manuell zuweise, da gsales momentan nur Netto Preise berechnet.

in der webhosting.php ab ca: 1168
ab dem Abschnitt include gsales
Code:
// Save order
        $customerid="";
        $date=time();
        $vhcsdb->setQuery("INSERT INTO ".$ordertable." (
                            user_id,
                            plan_id,
                            date,
                            domain_name,
                            customer_id,
                            fname,
                            lname,
                            firm,
                            zip,
                            city,
                            country,
                            email,
                            phone,
                            fax,
                            street1,
                            street2,
                            status)
                           VALUES('".
                            $resellerid."','".
                            $vhcs_id."','".
                            $date."','".
                            $_SESSION['domains'][0]['domain']."','".
                            $customerid."','".
                            $_SESSION['adress']['surname']."','".
                            $_SESSION['adress']['name']."','".
                            $_SESSION['adress']['company']."','".
                            $_SESSION['adress']['zip']."','".
                            $_SESSION['adress']['city']."','".
                            $_SESSION['adress']['country']."','".
                            $_SESSION['adress']['email']."','".
                            $_SESSION['adress']['tel']."','".
                            $_SESSION['adress']['fax']."','".
                            $_SESSION['adress']['street']."','".
                            sprintf("%01.".$params->get('decimalplaces','2')."f", $totalfee)."','"."new')");                  
      
{
    
    include "gsales/schnittstelle.php";    
       $timestamp = time();
       $datumheute = date("Y-m-d",$timestamp);
       $datleer = ' '; // Für Funktionen mit mehreren Daten, dient als Leerzeichen
       $leer = ' '; // Für Funktionen mit mehreren Daten, dient als Leerzeichen

       $firma = $_SESSION['adress']['company'];
       $vorname = $_SESSION['adress']['name'];
       $name = $_SESSION['adress']['surname'];
       $anschrift = $_SESSION['adress']['street'];
       $plz = $_SESSION['adress']['zip'];
       $ort = $_SESSION['adress']['city'];
       $mail = $_SESSION['adress']['email'];
       $telefon = $_SESSION['adress']['tel'];
       $telefax = $_SESSION['adress']['fax'];

       $kundenid = neuerKunde($firma,$vorname.$leer.$name ,$anschrift,$plz,$ort,$mail,'Bitte begleichen Sie diese Rechnung bis zum {faellig}','Bei Paypal Zahlungen bitte an: xxxxx@xxxxx.tld','Alle Waren und Leistungen bleiben bis zur vollständigen Bezahlung Eigentum der xxxxxxxxxx ',$telefon,$telefax);

}
09-19-2008 09:14 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
API zu ISCP - Janko - 09-14-2008, 08:53 AM
RE: API zu ISCP - zpin - 09-14-2008, 05:55 PM
RE: API zu ISCP - fulltilt - 09-15-2008, 06:18 PM
RE: API zu ISCP - menki - 09-16-2008, 03:18 AM
RE: API zu ISCP - fulltilt - 09-16-2008, 03:29 AM
RE: API zu ISCP - Splinter - 09-19-2008, 08:48 PM
RE: API zu ISCP - gOOvER - 09-19-2008, 09:13 PM
RE: API zu ISCP - fulltilt - 09-19-2008 09:14 PM
RE: API zu ISCP - ZooL - 09-19-2008, 09:35 PM
RE: API zu ISCP - BeNe - 09-19-2008, 09:47 PM
RE: API zu ISCP - fulltilt - 09-19-2008, 09:52 PM
RE: API zu ISCP - Splinter - 09-20-2008, 09:26 PM

Forum Jump:


User(s) browsing this thread: 7 Guest(s)