event-tickets-mail-in-payment/templates/emails/order-cancelled.php
Ruben Ramirez 8fd8d9708c Initial commit: Complete Event Tickets Mail-In Payment Gateway
- Complete mail-in payment gateway for Event Tickets Commerce
- Support for check payments with collapsible checkout interface
- Admin interface for managing check payments and order status
- Professional asset organization with proper WordPress enqueuing
- Order management with status tracking (pending, received, bounced)
- Template system with responsive design and accessibility features
- Integration with Event Tickets Commerce order system
- Settings page for configuring payment instructions and addresses
2025-06-30 21:56:49 -04:00

141 lines
No EOL
5 KiB
PHP

<?php
/**
* Order cancelled email template
*
* @since 1.0.0
* @var \TEC\Tickets\Commerce\Order $order Order object
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php printf( __( 'Order Cancelled: #%s', 'event-tickets-mail-in' ), $order->get_order_number() ); ?></title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
.header {
background: #f8d7da;
padding: 20px;
text-align: center;
border-radius: 8px 8px 0 0;
border-bottom: 3px solid #dc3545;
}
.content {
background: #fff;
padding: 30px;
border: 1px solid #ddd;
}
.order-summary {
background: #f8f9fa;
padding: 20px;
border-radius: 4px;
margin: 20px 0;
}
.cancellation-notice {
background: #f8d7da;
padding: 20px;
border-radius: 4px;
border-left: 4px solid #dc3545;
margin: 20px 0;
}
.contact-info {
background: #e7f3ff;
padding: 15px;
border-radius: 4px;
border-left: 4px solid #0073aa;
margin: 20px 0;
}
.footer {
background: #f8f9fa;
padding: 20px;
text-align: center;
border-radius: 0 0 8px 8px;
border-top: 1px solid #ddd;
font-size: 14px;
color: #666;
}
h1, h2, h3 {
color: #dc3545;
}
.order-number {
font-size: 24px;
font-weight: bold;
color: #dc3545;
}
.cancel-icon {
font-size: 48px;
color: #dc3545;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="email-container">
<div class="header">
<div class="cancel-icon">✗</div>
<h1><?php esc_html_e( 'Order Cancelled', 'event-tickets-mail-in' ); ?></h1>
<p><?php printf( __( 'Order #%s', 'event-tickets-mail-in' ), '<span class="order-number">' . esc_html( $order->get_order_number() ) . '</span>' ); ?></p>
</div>
<div class="content">
<h2><?php esc_html_e( 'Your order has been cancelled', 'event-tickets-mail-in' ); ?></h2>
<p><?php printf(
__( 'Hello %s,', 'event-tickets-mail-in' ),
esc_html( $order->get_purchaser_name() )
); ?></p>
<div class="cancellation-notice">
<h3><?php esc_html_e( 'Order Cancellation Notice', 'event-tickets-mail-in' ); ?></h3>
<p><?php esc_html_e( 'We regret to inform you that your order has been cancelled. This may have occurred for one of the following reasons:', 'event-tickets-mail-in' ); ?></p>
<ul>
<li><?php esc_html_e( 'Payment was not received within the specified timeframe', 'event-tickets-mail-in' ); ?></li>
<li><?php esc_html_e( 'Check payment was returned/bounced', 'event-tickets-mail-in' ); ?></li>
<li><?php esc_html_e( 'Manual cancellation by administrator', 'event-tickets-mail-in' ); ?></li>
<li><?php esc_html_e( 'Event was cancelled or postponed', 'event-tickets-mail-in' ); ?></li>
</ul>
</div>
<div class="order-summary">
<h3><?php esc_html_e( 'Cancelled Order Details', 'event-tickets-mail-in' ); ?></h3>
<p><strong><?php esc_html_e( 'Order Number:', 'event-tickets-mail-in' ); ?></strong> <?php echo esc_html( $order->get_order_number() ); ?></p>
<p><strong><?php esc_html_e( 'Order Total:', 'event-tickets-mail-in' ); ?></strong> <?php echo esc_html( $order->get_total_value()->get_formatted() ); ?></p>
<p><strong><?php esc_html_e( 'Cancellation Date:', 'event-tickets-mail-in' ); ?></strong> <?php echo esc_html( date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) ); ?></p>
<p><strong><?php esc_html_e( 'Status:', 'event-tickets-mail-in' ); ?></strong> <span style="color: #dc3545; font-weight: bold;"><?php esc_html_e( 'Cancelled', 'event-tickets-mail-in' ); ?></span></p>
</div>
<h3><?php esc_html_e( 'What this means:', 'event-tickets-mail-in' ); ?></h3>
<ul>
<li><?php esc_html_e( 'Your ticket reservation has been released', 'event-tickets-mail-in' ); ?></li>
<li><?php esc_html_e( 'No payment is required for this cancelled order', 'event-tickets-mail-in' ); ?></li>
<li><?php esc_html_e( 'If you already mailed a check, please contact us for a refund', 'event-tickets-mail-in' ); ?></li>
<li><?php esc_html_e( 'You can place a new order if tickets are still available', 'event-tickets-mail-in' ); ?></li>
</ul>
<div class="contact-info">
<h3><?php esc_html_e( 'Questions or Concerns?', 'event-tickets-mail-in' ); ?></h3>
<p><?php esc_html_e( 'If you believe this cancellation was made in error, or if you have any questions about this cancellation, please contact us immediately.', 'event-tickets-mail-in' ); ?></p>
<p><?php esc_html_e( 'We apologize for any inconvenience this may cause.', 'event-tickets-mail-in' ); ?></p>
</div>
<p><?php esc_html_e( 'Thank you for your understanding.', 'event-tickets-mail-in' ); ?></p>
</div>
<div class="footer">
<p><?php echo esc_html( get_option( 'blogname' ) ); ?></p>
<p><?php echo esc_html( get_option( 'admin_email' ) ); ?></p>
</div>
</div>
</body>
</html>