//TODO: get vouchers
//get other fields
- $this->deliveryaddress=$cart->getShippingAddress();
+ if (!isEmpty($cart->getShippingAddress()))
+ $this->deliveryaddress=$cart->getShippingAddress();
+ else {
+ $customer = new Customer($this->customerid);
+ if ($customer->isValid())
+ $this->deliveryaddress=$customer->getAddress();
+ }
$this->comment=$cart->getOrderComments();
return true;
}
}
}
}
+
+function sendOrderConfirmationMail($order)
+{
+ $p = new Parser("orderconfirmationmail.html");
+
+
+
+ $p->setVar(
+}
?>
\ No newline at end of file
--- /dev/null
+#set:SUBJECT:
+Bestellbestätigung
+#endset
+
+#set:BODY:
+Hallo,
+
+ihre Bestellung wurde aufgenommen.
+
+Ihre Bestellung beinhaltet folgende Posten:
+
+@ORDERLIST@
+
+Gesamtsumme: @TOTALSUM@
+
+Der Versand erfolgt an:
+
+@CUSTOMERADDRESS@
+
+Vielen Dank für Ihre Bestellung.
+
+Ihr Zauberschloss
+#endset
+
+#set:CUSTOMERADDRESS:
+@CUST_NAME@
+@CUST_SHIPPINGADDRESS@
+#endset
+
+#set:ORDERITEM:
+@EVENTNAME@ (@DATE@ @TIME@)
+@PRICE@
+Menge: @AMOUNT@
+#endset