ru-se.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

order-details-customer.php (2998B)


      1 <?php
      2 /**
      3  * Order Customer Details
      4  *
      5  * This template can be overridden by copying it to yourtheme/woocommerce/order/order-details-customer.php.
      6  *
      7  * HOWEVER, on occasion WooCommerce will need to update template files and you
      8  * (the theme developer) will need to copy the new files to your theme to
      9  * maintain compatibility. We try to do this as little as possible, but it does
     10  * happen. When this occurs the version of the template file will be bumped and
     11  * the readme will list any important changes.
     12  *
     13  * @see 	https://docs.woocommerce.com/document/template-structure/
     14  * @package WooCommerce\Templates
     15  * @version 3.4.4
     16  */
     17 
     18 defined( 'ABSPATH' ) || exit;
     19 ?>
     20 
     21 <section class="woocommerce-customer-details">
     22 <div class="woocommerce-customer-details-card">
     23 	<div>
     24 		<h3><?php _e( 'Customer details', 'materialis' ); ?></h3>
     25 
     26 		<table class="woocommerce-table woocommerce-table--customer-details shop_table customer_details">
     27 
     28 			<?php if ( $order->get_customer_note() ) : ?>
     29 				<tr>
     30 					<th><?php _e( 'Note:', 'materialis' ); ?></th>
     31 					<td><?php echo wptexturize( $order->get_customer_note() ); ?></td>
     32 				</tr>
     33 			<?php endif; ?>
     34 
     35 			<?php if ( $order->get_billing_email() ) : ?>
     36 				<tr>
     37 					<th><?php _e( 'Email:', 'materialis' ); ?></th>
     38 					<td><?php echo esc_html( $order->get_billing_email() ); ?></td>
     39 				</tr>
     40 			<?php endif; ?>
     41 
     42 			<?php if ( $order->get_billing_phone() ) : ?>
     43 				<tr>
     44 					<th><?php _e( 'Phone:', 'materialis' ); ?></th>
     45 					<td><?php echo esc_html( $order->get_billing_phone() ); ?></td>
     46 				</tr>
     47 			<?php endif; ?>
     48 
     49 			<?php do_action( 'woocommerce_order_details_after_customer_details', $order ); ?>
     50 
     51 		</table>
     52 	</div>
     53 
     54 	<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) : ?>
     55 
     56 		<section class="woocommerce-columns woocommerce-columns--2 woocommerce-columns--addresses col2-set addresses">
     57 
     58 			<div class="woocommerce-column woocommerce-column--1 woocommerce-column--billing-address col-1">
     59 
     60 				<?php endif; ?>
     61 
     62 				<div class="billing-adress">
     63 					<h3 class="woocommerce-column__title"><?php esc_html_e( 'Billing address', 'materialis' ); ?></h3>
     64 
     65 					<address>
     66 						<?php echo wp_kses_post( ( $address = $order->get_formatted_billing_address() ) ? $address : __( 'N/A', 'materialis' ) ); ?>
     67 					</address>
     68 				</div>
     69 
     70 				<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) : ?>
     71 
     72 			</div><!-- /.col-1 -->
     73 
     74 			<div class="woocommerce-column woocommerce-column--2 woocommerce-column--shipping-address col-2">
     75 
     76 				<h3 class="woocommerce-column__title"><?php esc_html_e( 'Shipping address', 'materialis' ); ?></h3>
     77 
     78 				<address>
     79 					<?php echo wp_kses_post( ( $address = $order->get_formatted_shipping_address() ) ? $address : __( 'N/A', 'materialis' ) ); ?>
     80 				</address>
     81 
     82 			</div><!-- /.col-2 -->
     83 
     84 		</section><!-- /.col2-set -->
     85 	</div>
     86 	<?php endif; ?>
     87         
     88     <?php do_action('woocommerce_order_details_after_customer_details', $order); ?>
     89 </div>
     90 </section>