Ejemplo n.º 1
0
function wpsc_send_customer_email($purchase_log)
{
    if (!is_object($purchase_log)) {
        $purchase_log = new WPSC_Purchase_Log($purchase_log);
    }
    if (!$purchase_log->is_transaction_completed() && !$purchase_log->is_order_received()) {
        return;
    }
    $email = new WPSC_Purchase_Log_Customer_Notification($purchase_log);
    $email_sent = $email->send();
    do_action('wpsc_transaction_send_email_to_customer', $email, $email_sent);
    return $email_sent;
}
Ejemplo n.º 2
0
 /**
  * Let the parent object(s) do the work, then restore our well-formatted email content.
  *
  * This avoids an issue whereby the CSS in our ticket email's style element is processed by
  * wpautop().
  */
 public function __construct($purchase_log)
 {
     parent::__construct($purchase_log);
     $this->html_message = $this->wpec_tickets_email_msg;
 }