コード例 #1
0
<?php

defined("SYSPATH") or die("No direct script access.");
?>
<div class="g-block">
<div id="b-complete">
<h2>Thankyou for your order</h2>
<?php 
if ($order->method == Order_Model::PAYMENT_PAYPAL) {
    ?>
Your order will be confirmed when Paypal has finished processing your order.<?php 
} else {
    echo basket::replaceStrings(basket::getOrderCompletePage(), array("order_number" => $ordernumber, "total_cost" => basket::formatMoneyForWeb($total_cost)));
}
?>
</div>
</div>
コード例 #2
0
ファイル: basket.php プロジェクト: Glooper/gallery3-contrib
 public function send_invoice($order)
 {
     $from = "From: " . basket::getEmailAddress();
     $ordernumber = basket::getOrderPrefix() . $order->id;
     $invoice_email = basket::replaceStrings(basket::getOrderCompleteEmail(), array("name" => $order->name, "order_number" => $ordernumber, "total_cost" => basket::formatMoney($order->cost), "order_details" => $order->text));
     mail($order->email, basket::replaceStrings(basket::getOrderCompleteEmailSubject(), array("order_number" => $ordernumber)), $invoice_email, $from);
 }
コード例 #3
0
ファイル: basket.php プロジェクト: rledisez/gallery3-contrib
 public function send_delivery_confirmation($order)
 {
     // delivered confirmation mail to customer
     $to = $order->email;
     $from = "From: " . basket::getEmailAddress();
     if ($order->status == Order_Model::DELIVERED) {
         $subject = basket::replaceStringsAll(basket::getOrderdeliveredEmailSubject(), $order);
         $body = basket::getOrderDeliveredEmail();
     } elseif ($order->status == Order_Model::DELIVERED_NOTPAID) {
         $subject = basket::replaceStringsAll(basket::getOrderDeliveredNotPaidEmailSubject(), $order);
         $body = basket::getOrderDeliveredNotPaidEmail();
     }
     $body = $body . "\r\n" . basket::getOrderEmailClosing() . "";
     //replace variables
     $body = basket::replaceStringsAll($body, $order);
     $body = basket::replaceStrings($body, array("delivery_method" => basket::deliveryMethod($order)));
     //send mail
     mail($to, $subject, $body, $from);
 }
コード例 #4
0
        }
      }
    }
  }
</SCRIPT>

<div class="g-block">
<h2><?php 
echo t("Delivery and Contact (Step 1 of 3)");
?>
</h2>
  <div id="b-complete">
  <?php 
$payment_details = basket::getPaymentDetails();
$webshop = basket::getWebshop();
$payment_details = basket::replaceStrings($payment_details, array("webshop" => $webshop));
/* here the payment options text is loaded */
?>
  <?php 
if ($payment_details) {
    ?>
    <div class="basket-right" id="payment">
      <h3> <?php 
    echo t("Payment options");
    ?>
</h3>
      <?php 
    echo $payment_details;
    ?>
    </div>
  <?php