Skip to content

Commit

Permalink
fix: update template for woo 8.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed Mar 21, 2024
1 parent 11769f2 commit cbb0fac
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion newspack-theme/woocommerce/order/order-details-customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 5.6.0
* @version 8.7.0
*/

defined( 'ABSPATH' ) || exit;
Expand Down Expand Up @@ -44,6 +44,17 @@
<?php if ( $order->get_billing_email() ) : ?>
<p class="woocommerce-customer-details--email"><?php echo esc_html( $order->get_billing_email() ); ?></p>
<?php endif; ?>

<?php
/**
* Action hook fired after an address in the order customer details.
*
* @since 8.7.0
* @param string $address_type Type of address (billing or shipping).
* @param WC_Order $order Order object.
*/
do_action( 'woocommerce_order_details_after_customer_address', 'billing', $order );
?>
</address>

<?php if ( $show_shipping ) : ?>
Expand All @@ -54,6 +65,17 @@
<h5 class="woocommerce-column__title"><?php esc_html_e( 'Shipping address', 'newspack' ); ?></h5>
<address>
<?php echo wp_kses_post( $order->get_formatted_shipping_address( esc_html__( 'N/A', 'newspack' ) ) ); ?>

<?php
/**
* Action hook fired after an address in the order customer details.
*
* @since 8.7.0
* @param string $address_type Type of address (billing or shipping).
* @param WC_Order $order Order object.
*/
do_action( 'woocommerce_order_details_after_customer_address', 'shipping', $order );
?>
</address>
</div><!-- /.col-2 -->

Expand Down

0 comments on commit cbb0fac

Please sign in to comment.