The following shows the data structure for the shopping cart in the Shopskeleton.
Here you can enter information about the billing address:
-
$warenkorb[name] = "Musterfirma AG"; /* For private person directly name of the person - contact person then remains empty */
-
$warenkorb[anrede]="firma"; /* mr, mrs or firma */
-
$warenkorb[ansprechpartner] = "Max Mustermann";
-
$warenkorb[abteilung] = "Development department;
-
$warenkorb[strasse] = "sample street 12";
-
$warenkorb[plz] = "12345";
-
$warenkorb[ort] = "Musterdorf;
-
$warenkorb[land] = "DE"; /* 2-digit ISO */
-
$warenkorb[email] = "email@email.de";
Details of the order information can be entered here:
-
$warenkorb[bestelldatum] = "2012-12-01"; /* date of order */
-
$shopping cart[grand total] = 10.99; /* final total that will be paid */
-
$warenkorb[transaktionsnummer] = 192939; /* e.g. Paypal, iPayment or Billsafe transaction number*/
-
$warenkorb[onlinebestellnummer] = 123456; /* Internal store order number (Important e.g. for prepayments) */
-
$warenkorb[versandkostennetto] = "3.31";
-
$warenkorb[versandkostenbrutto] = "3.95";
-
$warenkorb[freitext] = "Free text on documents like order, invoice and delivery bill";
Details of the tax information can be entered here:
-
$warenkorb[steuerfrei] = 0; /* or 1 if tax free */
-
$warenkorb['vorabbezahlt mark']=1; /* If no payment is received from Xentral is made */
Here you can enter information about the delivery:
-
$warenkorb['lieferdatum']="2012-12-24"; /* wish delivery date of the customer */
-
$shopping cart[delivery] = "shipping company"; /* or self pickup or specifically dpd or dhl */
This information must be filled in if there is another delivery address.
-
$warenkorb2[lieferadresse_name] = "";
-
$warenkorb2[lieferadresse_ansprechpartner] = "";
-
$warenkorb2[lieferadresse_strasse] = "";
-
$warenkorb2[lieferadresse_plz] = "";
-
$warenkorb2[lieferadresse_ort] = "";
-
$warenkorb2[lieferadresse_land] = "";
-
$warenkorb2[lieferadresse_abteilung] = "";
Here many positions can be booked:
$articlearray[] = array( 'articleid'=>'12345', /* article number from Xentral / 'name'=>'name of the article', / name of the article that appears in the order, invoice and delivery bill / 'price'=>'41.97', / net price of the item price of the item / 'quantity'=>1 / quantity of the item */ );
The array is to be assigned at the end:
$warenkorb[articlelist]=$articlearray;
The respective payment methods must be mapped correctly:
$shopping cart[payment method] = "cash"; $shopping cart[payment method] = "invoice"; $shopping cart[payment method] = "prepayment"; $shopping cart[payment method] = "credit card"; $shopping cart[payment method] = "direct debit"; $warenkorb[zahlungsweise] = "paypal"; $warenkorb[zahlungsweise] = "cash on delivery"; $warenkorb[zahlungsweise] = "amazoncba"; $warenkorb[zahlungsweise] = "sofortueberweisung"; $warenkorb[zahlungsweise] = "billsafe"; $warenkorb[zahlungsweise] = "unknown";