# subscription/1.9.5/includes/Admin/views/subscription-customer.php

Subscriptions for WooCommerce with Stripe Recurring Payments, version 1.9.5. 135 lines.

- Page: https://pluginprobe.com/plugins/subscription/1.9.5/code/includes/Admin/views/subscription-customer.php
- Raw: https://pluginprobe.com/plugins/subscription/1.9.5/raw/includes/Admin/views/subscription-customer.php
- Modified: 2026-03-09T08:29:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/subscription/1.9.5/code/includes/Admin/views/subscription-customer.php#L10-L20`.

```php
<?php
/**
 * Subscription Customer Details
 *
 * @package SpringDevs\Subscription\Admin
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$view_subs_endpoint = SpringDevs\Subscription\Illuminate\Subscription\Subscription::get_user_endpoint( 'view_subs' );
$subs_frontend_url  = wc_get_endpoint_url( $view_subs_endpoint, get_the_ID(), wc_get_page_permalink( 'myaccount' ) );

?>

<style>
.customer-details {
	font-size: 13px;
	line-height: 1.4;
}

.customer-details .info-group {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f1;
}

.customer-details .info-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.customer-details .label {
	color: #646970;
	font-weight: 600;
	margin-bottom: 4px;
	display: block;
}

.customer-details .value {
	color: #2c3338;
}

.customer-details a {
	color: #2271b1;
	text-decoration: none;
	box-shadow: none;
}

.customer-details a:hover {
	color: #135e96;
}

.customer-details .address {
	color: #50575e;
	font-size: 12px;
	line-height: 1.5;
	margin: 4px 0;
}

.customer-details .actions {
	margin-top: 12px;
}

.customer-details .button {
	font-size: 12px;
	height: auto;
	line-height: 2;
	padding: 0 8px;
	margin: 0 4px 4px 0;
	display: inline-block;
}

.customer-details .button-secondary {
	color: #50575e;
}
</style>

<div class="customer-details">
	<div class="info-group">
		<span class="label"><?php esc_html_e( 'Customer', 'subscription' ); ?></span>
		<div class="value">
			<?php if ( $order->get_customer_id() ) : ?>
				<a href="<?php echo esc_url( admin_url( 'user-edit.php?user_id=' . $order->get_customer_id() ) ); ?>" target="_blank">
					<?php echo esc_html( $order->get_billing_first_name() . ' ' . $order->get_billing_last_name() ); ?>
				</a>
			<?php else : ?>
				<?php echo esc_html( $order->get_billing_first_name() . ' ' . $order->get_billing_last_name() ); ?>
			<?php endif; ?>
			<br>
			<a href="mailto:<?php echo esc_attr( $order->get_billing_email() ); ?>">
				<?php echo esc_html( $order->get_billing_email() ); ?>
			</a>
			<?php if ( ! empty( $order->get_billing_phone() ) ) : ?>
				<br>
				<a href="tel:<?php echo esc_attr( $order->get_billing_phone() ); ?>">
					<?php echo esc_html( $order->get_billing_phone() ); ?>
				</a>
			<?php endif; ?>
		</div>
	</div>

	<div class="info-group">
		<span class="label"><?php esc_html_e( 'Billing', 'subscription' ); ?></span>
		<div class="value">
			<div class="address">
				<?php echo wp_kses_post( $order->get_formatted_billing_address() ? $order->get_formatted_billing_address() : __( 'No billing address set.', 'subscription' ) ); ?>
			</div>
		</div>
	</div>

	<div class="info-group">
		<span class="label"><?php esc_html_e( 'Shipping', 'subscription' ); ?></span>
		<div class="value">
			<div class="address">
				<?php echo wp_kses_post( $order->get_formatted_shipping_address() ? $order->get_formatted_shipping_address() : __( 'No shipping address set.', 'subscription' ) ); ?>
			</div>
		</div>
	</div>

	<div class="info-group">
		<div class="actions">
			<a class="button button-primary" target="_blank" href="<?php echo esc_url( $order->get_edit_order_url() ); ?>">
				<?php esc_html_e( 'View Order', 'subscription' ); ?>
			</a>
			<a class="button button-secondary" target="_blank" href="<?php echo esc_url( $subs_frontend_url ); ?>">
				<?php esc_html_e( 'View Frontend', 'subscription' ); ?>
			</a>
		</div>
	</div>
</div>

```
