HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/shoetique/wp-content/themes/north-wp/woocommerce/order/order-details.php
<?php
/**
 * Order details
 *
 * @author  WooThemes
 * @package WooCommerce/Templates
 * @version 2.4.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$order = wc_get_order( $order_id );
?>
<?php if (!is_checkout()) { ?>
<section class="my_woocommerce_page page-padding">
	<div class="custom_scroll">
<?php } ?>
		<div class="row full-width-row no-padding">
			<div class="text-center"><a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" class="back_to_account"><?php _e("<small>Back to</small> My Account", 'north'); ?></a></div>
			<div class="small-12 medium-6 columns">
			<div class="login-section">
			<div class="smalltitle"><?php _e( 'Order Details','north' ); ?></div>
			<p class="order-info"><?php printf( __( 'Order #<mark class="order-number">%s</mark> was placed on <mark class="order-date">%s</mark> and is currently <mark class="order-status">%s</mark>.', 'woocommerce' ), $order->get_order_number(), date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ), wc_get_order_status_name( $order->get_status() ) ); ?></p>
			<table class="shopping_bag order_table">
				<thead>
					<tr>
						<th class="product-name"><?php _e( 'Product','north' ); ?></th>
						<th class="product-subtotal"><?php _e( 'Total','north' ); ?></th>
					</tr>
				</thead>
				<tbody>
					<?php
						foreach( $order->get_items() as $item_id => $item ) {
							wc_get_template( 'order/order-details-item.php', array(
								'order'   => $order,
								'item_id' => $item_id,
								'item'    => $item,
								'product' => apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item )
							) );
						}
					?>
					<?php do_action( 'woocommerce_order_items_table', $order ); ?>
				</tbody>
				<tfoot>
					
				<tr class="order-subtotal">
					<th scope="row"><?php _e( 'Subtotal:', 'woocommerce' ); ?></th>
					<td><?php echo price_with_secondary($order->get_subtotal()); ?></td>
				</tr>
		
				<?php if ( count( $order->get_coupon_codes() ) > 0 ) : ?>
					<tr class="order-discount coupon">
						<th scope="row"><?php _e( 'Coupon:', 'woocommerce' );; ?></th>
						<td><?php echo price_with_secondary($order->get_discount_total()); ?></td>
					</tr>
				<?php endif; ?>

				<tr class="order-shipping">
					<th scope="row"><?php _e( 'Shipping:', 'woocommerce' );; ?></th>
					<td><?php echo $order->get_shipping_method(); ?></td>
				</tr>
		
				<?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
					<tr class="fee">
						<th scope="row"><?php echo esc_html( $fee->name ); ?></th>
						<td><?php wc_cart_totals_fee_html( $fee ); ?></td>
					</tr>
				<?php endforeach; ?>
		
				<?php if ( WC()->cart->tax_display_cart === 'excl' ) : ?>
					<?php if ( get_option( 'woocommerce_tax_total_display' ) === 'itemized' ) : ?>
						<?php foreach ( $order->get_tax_totals() as $code => $tax ) : ?>
							<tr class="tax-rate tax-rate-<?php echo sanitize_title( $code ); ?>" colspan="3">
								<th scope="row"><?php echo esc_html( $tax->label ); ?>:</th>
								<td><?php echo price_with_secondary( $tax->amount ); ?></td>
							</tr>
						<?php endforeach; ?>
					<?php else : ?>
						<tr class="tax-total">
							<th scope="row"><?php echo esc_html( WC()->countries->tax_or_vat() ); ?>:</th>
							<td><?php echo price_with_secondary( $order->get_total_tax() ); ?></td>
						</tr>
					<?php endif; ?>
				<?php endif; ?>

				<tr class="order-payment-method">
					<th scope="row"><?php _e( 'Payment method:', 'woocommerce' ); ?></th>
					<td><?php echo $order->get_payment_method_title(); ?></td>
				</tr>
		
				<tr class="order-total">
					<th scope="row"><?php _e( 'Subtotal:', 'woocommerce' ); ?></th>
					<td><?php echo price_with_secondary( $order->total ); ?></td>
				</tr>

				</tfoot>
			</table>

			<?php do_action( 'woocommerce_order_details_after_order_table', $order ); ?>
				</div>
			</div>
				<div class="small-12 medium-6 columns">
					<div class="login-section">
			<div class="smalltitle"><?php _e( 'Customer details','north' ); ?></div>


			<dl class="customer_details">
			<?php
				if ( $order->customer_note ) echo '<dt>' . __( 'Note:', 'north') . '</dt><dd>' . wptexturize( $order->customer_note ) . '</dd>';
				if ( $order->billing_email ) echo '<dt>' . __( 'Email:', 'north') . '</dt><dd>' . esc_html( $order->billing_email ) . '</dd>';
				if ( $order->billing_phone ) echo '<dt>' . __( 'Telephone:', 'north') . '</dt><dd>' . esc_html( $order->billing_phone ) . '</dd>';

				// Additional customer details hook
				do_action( 'woocommerce_order_details_after_customer_details', $order );
			?>
			</dl>

			<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) : ?>

			<div class="row addresses">

				<div class="small-12 medium-6 columns address">

			<?php endif; ?>

					<h3><?php _e( 'Billing Address','north' ); ?></h3>
					<address><p>
						<?php
							if ( ! $order->get_formatted_billing_address() ) {
								_e( 'N/A', 'north' );
							} else {
								echo $order->get_formatted_billing_address();
							}
						?>
					</p></address>

			<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) : ?>

				</div><!-- /.col-1 -->

				<div class="small-12 medium-6 columns address">

					<h3><?php _e( 'Shipping Address','north' ); ?></h3>
					<address><p>
						<?php
							if ( ! $order->get_formatted_shipping_address() ) {
								_e( 'N/A', 'north' );
							} else {
								echo $order->get_formatted_shipping_address();
							}
						?>
					</p></address>

				</div><!-- /.col-2 -->

			</div><!-- /.col2-set -->

			<?php endif; ?>
					</div>
				</div>
		</div>
		</div>
<?php if (!is_checkout()) { ?>
	</div>
</section>
<?php } ?>