Created
January 21, 2015 15:40
-
-
Save woogist/afd35d71b7aeab2f5c5e to your computer and use it in GitHub Desktop.
Show the customer details in the thank you page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
<h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2> | |
</header> | |
<dl class="customer_details"> | |
<?php | |
if ( $order->billing_email ) echo '<dt>' . __( 'Email:', 'woocommerce' ) . '</dt><dd>' . $order->billing_email . '</dd>'; | |
if ( $order->billing_phone ) echo '<dt>' . __( 'Telephone:', 'woocommerce' ) . '</dt><dd>' . $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() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?> | |
<div class="col2-set addresses"> | |
<div class="col-1"> | |
<?php endif; ?> | |
<header class="title"> | |
<h3><?php _e( 'Billing Address', 'woocommerce' ); ?></h3> | |
</header> | |
<address> | |
<?php | |
if ( ! $order->get_formatted_billing_address() ) _e( 'N/A', 'woocommerce' ); else echo $order->get_formatted_billing_address(); | |
?> | |
</address> | |
<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?> | |
</div><!-- /.col-1 --> | |
<div class="col-2"> | |
<header class="title"> | |
<h3><?php _e( 'Shipping Address', 'woocommerce' ); ?></h3> | |
</header> | |
<address> | |
<?php | |
if ( ! $order->get_formatted_shipping_address() ) _e( 'N/A', 'woocommerce' ); else echo $order->get_formatted_shipping_address(); | |
?> | |
</address> | |
</div><!-- /.col-2 --> | |
</div><!-- /.col2-set --> | |
<?php endif; ?> | |
<div class="clear"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment