Нет описания

order-receipt.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Checkout Order Receipt Template
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/checkout/order-receipt.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.2.0
  16. */
  17. if ( ! defined( 'ABSPATH' ) ) {
  18. exit;
  19. }
  20. ?>
  21. <ul class="order_details">
  22. <li class="order">
  23. <?php esc_html_e( 'Order number:', 'woocommerce' ); ?>
  24. <strong><?php echo esc_html( $order->get_order_number() ); ?></strong>
  25. </li>
  26. <li class="date">
  27. <?php esc_html_e( 'Date:', 'woocommerce' ); ?>
  28. <strong><?php echo esc_html( wc_format_datetime( $order->get_date_created() ) ); ?></strong>
  29. </li>
  30. <li class="total">
  31. <?php esc_html_e( 'Total:', 'woocommerce' ); ?>
  32. <strong><?php echo wp_kses_post( $order->get_formatted_order_total() ); ?></strong>
  33. </li>
  34. <?php if ( $order->get_payment_method_title() ) : ?>
  35. <li class="method">
  36. <?php esc_html_e( 'Payment method:', 'woocommerce' ); ?>
  37. <strong><?php echo wp_kses_post( $order->get_payment_method_title() ); ?></strong>
  38. </li>
  39. <?php endif; ?>
  40. </ul>
  41. <?php do_action( 'woocommerce_receipt_' . $order->get_payment_method(), $order->get_id() ); ?>
  42. <div class="clear"></div>