Plugin Directory

Changeset 2295110


Ignore:
Timestamp:
04/30/2020 08:02:31 AM (6 years ago)
Author:
expresscheckout
Message:

Adding version 1.0.3

Location:
wc-express-checkout
Files:
11 edited
24 copied

Legend:

Unmodified
Added
Removed
  • wc-express-checkout/tags/1.0.3/express-checkout-for-woocommerce.php

    r2291992 r2295110  
    44 * Plugin URI: https://expresscheckout.app/
    55 * Description: Express Checkout instantly converts the default WooCommerce checkout into a beautiful, high converting checkout experience for your customers.
    6  * Version: 1.0.2
     6 * Version: 1.0.3
    77 * Author: expresscheckout
    88 * Author URI: http://expresscheckout.app/
  • wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/cart/cart-totals.php

    r2290477 r2295110  
    2222    <div class="card cart border-0 bg-light mb-4">
    2323        <div class="card-body py-4">
    24             <?php do_action( 'woocommerce_before_cart_totals' ); ?>
     24              <?php do_action( 'woocommerce_before_cart_totals' ); ?>
    2525            <div class="d-flex justify-content-between mb-2">
    2626                <strong><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?></strong>
     
    3131                <span><?php echo __('Calculated at next step', 'woocommerce-express-checkout' ); ?></span>
    3232            </div>
    33             <?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
    34                 <div class="d-flex justify-content-between mb-2 fee">
    35                     <strong><?php echo esc_html( $fee->name ); ?></strong>
    36                     <span><?php wc_cart_totals_fee_html( $fee ); ?></span>
    37                 </div>
    38             <?php endforeach; ?>
    39             <?php foreach ( WC()->cart->get_coupons() as $code => $coupon ) : ?>
    40                 <div class="d-flex justify-content-between mb-2 cart-discount coupon-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
    41                     <strong><?php wc_cart_totals_coupon_label( $coupon ); ?></strong>
    42                     <span><?php wc_cart_totals_coupon_html( $coupon ); ?></span>
    43                 </div>
    44             <?php endforeach; ?>
    45             <?php
    46             if ( wc_tax_enabled() && ! WC()->cart->display_prices_including_tax() ) {
    47                 $taxable_address = WC()->customer->get_taxable_address();
    48                 $estimated_text  = '';
     33             <?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
     34                <div class="d-flex justify-content-between mb-2 fee">
     35                    <strong><?php echo esc_html( $fee->name ); ?></strong>
     36                    <span><?php wc_cart_totals_fee_html( $fee ); ?></span>
     37                </div>
     38             <?php endforeach; ?>
     39             <?php foreach ( WC()->cart->get_coupons() as $code => $coupon ) : ?>
     40                <div class="d-flex justify-content-between mb-2 cart-discount coupon-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
     41                    <strong><?php wc_cart_totals_coupon_label( $coupon ); ?></strong>
     42                    <span><?php wc_cart_totals_coupon_html( $coupon ); ?></span>
     43                </div>
     44             <?php endforeach; ?>
     45             <?php
     46              if ( wc_tax_enabled() && ! WC()->cart->display_prices_including_tax() ) {
     47                 $taxable_address = WC()->customer->get_taxable_address();
     48                 $estimated_text  = '';
     49                 if ( WC()->customer->is_customer_outside_base() && ! WC()->customer->has_calculated_shipping() ) {
     50                      /* translators: %s location. */
     51                     $estimated_text = sprintf( ' <small>' . esc_html__( '(estimated for %s)', 'woocommerce' ) . '</small>', WC()->countries->estimated_for_prefix( $taxable_address[0] ) . WC()->countries->countries[ $taxable_address[0] ] );
     52                 }
    4953
    50                 if ( WC()->customer->is_customer_outside_base() && ! WC()->customer->has_calculated_shipping() ) {
    51                     /* translators: %s location. */
    52                     $estimated_text = sprintf( ' <small>' . esc_html__( '(estimated for %s)', 'woocommerce' ) . '</small>', WC()->countries->estimated_for_prefix( $taxable_address[0] ) . WC()->countries->countries[ $taxable_address[0] ] );
    53                 }
     54                 if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) {
     55                     foreach ( WC()->cart->get_tax_totals() as $code => $tax ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
     56                     ?>
     57                     <div class="d-flex justify-content-between mb-2 tax-rate tax-rate-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
     58                         <strong><?php echo esc_html( $tax->label ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong>
     59                         <span><?php echo wp_kses_post( $tax->formatted_amount ); ?></span>
     60                     </div>
     61                     <?php
     62                     }
     63                 } else {
     64                      ?>
     65                      <div class="d-flex justify-content-between mb-2 tax-total">
     66                          <strong><?php echo esc_html( WC()->countries->tax_or_vat() ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong>
     67                         <span><?php wc_cart_totals_taxes_total_html(); ?></span>
     68                     </div>
     69                     <?php
     70                 }
     71             }
     72             ?>
    5473
    55                 if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) {
    56                     foreach ( WC()->cart->get_tax_totals() as $code => $tax ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
    57                     ?>
    58                         <div class="d-flex justify-content-between mb-2 tax-rate tax-rate-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
    59                             <strong><?php echo esc_html( $tax->label ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong>
    60                             <span><?php echo wp_kses_post( $tax->formatted_amount ); ?></span>
    61                         </div>
    62                         <?php
    63                     }
    64                 } else {
    65                     ?>
    66                     <div class="d-flex justify-content-between mb-2 tax-total">
    67                         <strong><?php echo esc_html( WC()->countries->tax_or_vat() ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong>
    68                         <span><?php wc_cart_totals_taxes_total_html(); ?></span>
    69                     </div>
    70                     <?php
    71                 }
    72             }
    73             ?>
    74 
    75             <?php do_action( 'woocommerce_cart_totals_before_order_total' ); ?>
     74             <?php do_action( 'woocommerce_cart_totals_before_order_total' ); ?>
    7675
    7776            <div class="d-flex justify-content-between h5 mb-2 mt-4">
     
    8079            </div>
    8180
    82             <?php do_action( 'woocommerce_cart_totals_after_order_total' ); ?>
    83             <?php do_action( 'woocommerce_proceed_to_checkout' ); ?>
     81             <?php do_action( 'woocommerce_cart_totals_after_order_total' ); ?>
     82             <?php do_action( 'woocommerce_proceed_to_checkout' ); ?>
    8483
    8584        </div>
    8685        <div class="card-footer p-0 mt-2 mb-2 ml-0 mr-0 border-0">
    87             <?php do_action( 'woocommerce_cart_coupon' ); ?>
     86              <?php do_action( 'woocommerce_cart_coupon' ); ?>
    8887        </div>
    89         <?php if ( wc_coupons_enabled() ) { ?>
    90         <div class="card-footer border-0">
    91             <a href="#collapseDiscount" class="discount d-flex justify-content-between align-items-center collapsed text-dark" role="button" data-toggle="collapse" aria-expanded="false" aria-controls="collapseDiscount">
    92                 <span class="small">Promo code?</span>
    93                 <i class="material-icons rotate-icon">keyboard_arrow_down</i>
    94             </a>
    95             <div class="collapse coupon" id="collapseDiscount">
    96                 <form class="form-row cart_coupon mt-3">
    97                     <div class="col">
    98                         <label class="sr-only" for="coupon_code"><?php esc_html_e( 'Coupon:', 'woocommerce' ); ?></label>
    99                         <input type="text" name="coupon_code" class="input-text form-control form-control-sm mb-2 mr-sm-2" id="coupon_code" value="<?php echo isset( $_GET['coupon_code'] ) ? esc_attr( $_GET['coupon_code'] ) : ''; ?>" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" />
    100                     </div>
    101                     <div class="col-auto">
    102                         <button type="submit" class="btn btn-primary btn-sm mb-2" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?></button>
    103                     </div>
    104                 </form>
    105             </div>
    106         </div>
    107         <?php } ?>
     88         <?php if ( wc_coupons_enabled() ) { ?>
     89          <div class="card-footer border-0">
     90             <a href="#collapseDiscount" class="discount d-flex justify-content-between align-items-center collapsed text-dark" role="button" data-toggle="collapse" aria-expanded="false" aria-controls="collapseDiscount">
     91                 <span class="small"><?php esc_attr_e( 'Promo code?', 'woocommerce' ); ?></span>
     92                 <i class="material-icons rotate-icon">keyboard_arrow_down</i>
     93             </a>
     94             <div class="collapse coupon" id="collapseDiscount">
     95                 <form class="form-row cart_coupon mt-3">
     96                     <div class="col">
     97                         <label class="sr-only" for="coupon_code"><?php esc_html_e( 'Coupon:', 'woocommerce' ); ?></label>
     98                         <input type="text" name="coupon_code" class="input-text form-control form-control-sm mb-2 mr-sm-2" id="coupon_code" value="<?php echo isset( $_GET['coupon_code'] ) ? esc_attr( $_GET['coupon_code'] ) : ''; ?>" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" />
     99                     </div>
     100                     <div class="col-auto">
     101                         <button type="submit" class="btn btn-primary btn-sm mb-2" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?></button>
     102                     </div>
     103                 </form>
     104             </div>
     105         </div>
     106         <?php } ?>
    108107    </div>
    109108    <div class="bg-light text-center p-3 wc-proceed-to-checkout">
    110         <i class="material-icons align-bottom">lock</i> Secure Checkout
     109        <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?>
    111110    </div>
    112111</div>
  • wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/cart/cart.php

    r2290477 r2295110  
    9191                                        </div>
    9292                                        <div class="col-sm-4 text-sm-right">
    93                                              <?php
    94                                                 if ( $_product->is_sold_individually() ) {
    95                                                     $product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
    96                                                 } else {
    97                                                     $product_quantity = woocommerce_quantity_input(
    98                                                         array(
    99                                                             'input_name'   => "cart[{$cart_item_key}][qty]",
    100                                                             'input_value'  => $cart_item['quantity'],
    101                                                             'max_value'    => $_product->get_max_purchase_quantity(),
    102                                                             'min_value'    => '0',
    103                                                             'product_name' => $_product->get_name(),
    104                                                         ),
    105                                                         $_product,
    106                                                         false
    107                                                     );
    108                                                 }
    109 
    110                                                 echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok.
    111                                                  ?>
    112                                                  <div class="product-remove">
    113                                                     <?php
    114                                                     echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    115                                                         'woocommerce_cart_item_remove_link',
    116                                                         sprintf(
    117                                                             '<a href="%s" class="btn btn-link remove text-secondary" aria-label="%s" data-product_id="%s" data-product_sku="%s">Remove</a>',
    118                                                             esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
    119                                                             esc_html__( 'Remove this item', 'woocommerce' ),
    120                                                             esc_attr( $product_id ),
    121                                                             esc_attr( $_product->get_sku() )
    122                                                         ),
    123                                                         $cart_item_key
    124                                                     );
    125                                                     ?>
    126                                                  </div>
     93                                             <?php if ( $_product->is_sold_individually() ) {
     94                                                $product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
     95                                             } else {
     96                                                   $product_quantity = woocommerce_quantity_input(
     97                                                    array(
     98                                                        'input_name'   => "cart[{$cart_item_key}][qty]",
     99                                                        'input_value'  => $cart_item['quantity'],
     100                                                        'max_value'    => $_product->get_max_purchase_quantity(),
     101                                                        'min_value'    => '0',
     102                                                        'product_name' => $_product->get_name(),
     103                                                    ),
     104                                                    $_product,
     105                                                    false
     106                                                );
     107                                             }
     108                                             echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok.
     109                                             ?>
     110                                            <div class="product-remove">
     111                                                 <?php echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     112                                                     'woocommerce_cart_item_remove_link',
     113                                                     sprintf(
     114                                                        '<a href="%s" class="btn btn-link remove text-secondary" aria-label="%s" data-product_id="%s" data-product_sku="%s">%s</a>',
     115                                                          esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
     116                                                          esc_html__( 'Remove this item', 'woocommerce' ),
     117                                                          esc_attr( $product_id ),
     118                                                          esc_attr( $_product->get_sku() ),
     119                                                          esc_html__( 'Remove', 'woocommerce' )
     120                                                     ),
     121                                                     $cart_item_key
     122                                                 ); ?>
     123                                            </div>
    127124                                        </div>
    128125                                    </div>
  • wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/checkout/form-checkout.php

    r2290477 r2295110  
    4242            </div>
    4343            <div class="bg-light text-center p-3">
    44                 <i class="material-icons align-bottom">lock</i> Secure Checkout
     44                <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?>
    4545            </div>
    4646        </div>
  • wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/checkout/payment.php

    r2290477 r2295110  
    3030    <fieldset class="mb-4 ml-0">
    3131        <legend class="h6 mb-4"><?php echo __( 'Payment Information', 'woocommerce' ); ?></legend>
    32         <?php if ( WC()->cart->needs_payment() ) : ?>
    33             <ul class="wc_payment_methods payment_methods methods list-group mb-4 ml-0">
    34                 <?php
    35                 if ( ! empty( $available_gateways ) ) {
    36                     foreach ( $available_gateways as $gateway ) {
    37                         wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
    38                     }
    39                 } else {
    40                     echo '<li class="list-group-item woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>'; // @codingStandardsIgnoreLine
    41                 }
    42                 ?>
    43             </ul>
    44         <?php endif; ?>
     32         <?php if ( WC()->cart->needs_payment() ) : ?>
     33            <ul class="wc_payment_methods payment_methods methods list-group mb-4 ml-0">
     34                  <?php
     35                  if ( ! empty( $available_gateways ) ) {
     36                      foreach ( $available_gateways as $gateway ) {
     37                          wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
     38                      }
     39                  } else {
     40                      echo '<li class="list-group-item woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>'; // @codingStandardsIgnoreLine
     41                  }
     42                  ?>
     43            </ul>
     44         <?php endif; ?>
    4545        <div class="form-row place-order">
    4646            <noscript>
    47                 <?php
    48                 /* translators: $1 and $2 opening and closing emphasis tags respectively */
    49                 printf( esc_html__( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the %1$sUpdate Totals%2$s button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ), '<em>', '</em>' );
    50                 ?>
     47                   <?php
     48                   /* translators: $1 and $2 opening and closing emphasis tags respectively */
     49                   printf( esc_html__( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the %1$sUpdate Totals%2$s button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ), '<em>', '</em>' );
     50                   ?>
    5151                <br/><button type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php esc_attr_e( 'Update totals', 'woocommerce' ); ?>"><?php esc_html_e( 'Update totals', 'woocommerce' ); ?></button>
    5252            </noscript>
    5353
    54             <?php wc_get_template( 'checkout/terms.php' ); ?>
     54              <?php wc_get_template( 'checkout/terms.php' ); ?>
    5555
    56             <?php do_action( 'woocommerce_review_order_before_submit' ); ?>
     56              <?php do_action( 'woocommerce_review_order_before_submit' ); ?>
    5757
    58             <?php echo apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="btn btn-primary btn-lg btn-block mb-3" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . __( 'Complete Purchase', 'woocommerce' ) . '</button>' ); // @codingStandardsIgnoreLine ?>
     58              <?php echo apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="btn btn-primary btn-lg btn-block mb-3" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . __( 'Complete Purchase', 'woocommerce' ) . '</button>' ); // @codingStandardsIgnoreLine ?>
    5959
    60             <?php do_action( 'woocommerce_review_order_after_submit' ); ?>
     60              <?php do_action( 'woocommerce_review_order_after_submit' ); ?>
    6161
    62             <?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?>
     62              <?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?>
    6363        </div>
    6464        <div class="text-center">
    65             <a href="<?php echo wc_get_cart_url(); ?>" class="btn btn-link text-secondary"><u>Return to cart</u></a>
     65            <a href="<?php echo wc_get_cart_url(); ?>" class="btn btn-link text-secondary"><u><?php esc_html_e( 'Return to cart', 'woocommerce' ); ?></u></a>
    6666        </div>
    6767    </fieldset>
  • wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/checkout/thankyou.php

    r2292000 r2295110  
    4545                    </i>
    4646                    <div class="media-body">
    47                         <div class="mb-1">Order #<?php echo $order->get_id(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
    48                         <div class="h5">Thank you <?php echo $order->get_billing_first_name(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>!</div>
     47                        <div class="mb-1"><?php esc_html_e( 'Order', 'woocommerce' ); ?> #<?php echo $order->get_id(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
     48                        <div class="h5"><?php esc_html_e( 'Thank you', 'woocommerce' ); ?> <?php echo $order->get_billing_first_name(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>!</div>
    4949                    </div>
    5050                </div>
    5151                <div class="card bg-light border-0 mb-4">
    5252                    <div class="card-header border-0">
    53                         <h3 class="h6 mb-0">Your order is confirmed</h3>
     53                        <h3 class="h6 mb-0"><?php esc_html_e( 'Your order is confirmed', 'woocommerce' ); ?></h3>
    5454                    </div>
    5555                    <div class="card-body">
    56                         <p class="card-text">We've accepted your order, and we're getting it ready. A confirmation email has been sent to <strong><?php echo $order->get_billing_email(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong></p>
     56                        <p class="card-text"><?php esc_html_e( 'We\'ve accepted your order, and we\'re getting it ready. A confirmation email has been sent to', 'woocommerce' ); ?> <strong><?php echo $order->get_billing_email(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong></p>
    5757                    </div>
    5858                </div>
    5959                <div class="card bg-light border-0 mb-4">
    6060                    <div class="card-header border-0">
    61                         <h3 class="h6 mb-0">Customer information</h3>
     61                        <h3 class="h6 mb-0"><?php esc_html_e( 'Customer information', 'woocommerce' ); ?></h3>
    6262                    </div>
    6363                    <div class="card-body">
    6464                        <div class="row">
    65                                  <?php $show_shipping = ! wc_ship_to_billing_address_only() && $order->needs_shipping_address(); ?>
    66                                  <?php if( $show_shipping ) { ?>
    67                                <div class="col-sm-6">
    68                                    <h4 class="h6">Shipping Address</h4>
    69                                    <p><?php echo $order->get_formatted_shipping_address(); ?></p>
    70                                </div>
    71                                <div class="col-sm-6">
    72                                    <h4 class="h6">Billing Address</h4>
    73                                    <p><?php echo $order->get_formatted_billing_address(); ?></p>
    74                                </div>
    75                                <div class="col-sm-6">
    76                                    <h4 class="h6">Shipping Method</h4>
    77                                    <p><?php echo $order->get_shipping_method(); ?></p>
    78                                </div>
    79                                <div class="col-sm-6">
    80                                    <h4 class="h6">Payment Method</h4>
    81                                    <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
    82                                </div>
    83                                  <?php } else { ?>
    84                                <div class="col-sm-6">
    85                                    <h4 class="h6">Billing Address</h4>
    86                                    <p><?php echo $order->get_formatted_billing_address(); ?></p>
    87                                </div>
    88                                <div class="col-sm-6">
    89                                    <h4 class="h6">Payment Method</h4>
    90                                    <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
    91                                </div>
    92                                  <?php } ?>
     65                            <div class="col-sm-6">
     66                                <h4 class="h6"><?php esc_html_e( 'Shipping Address', 'woocommerce' ); ?></h4>
     67                                <p><?php echo $order->get_formatted_shipping_address(); ?></p>
     68                            </div>
     69                            <div class="col-sm-6">
     70                                <h4 class="h6"><?php esc_html_e( 'Billing Address', 'woocommerce' ); ?></h4>
     71                                <p><?php echo $order->get_formatted_billing_address(); ?></p>
     72                            </div>
     73                            <div class="col-sm-6">
     74                                <h4 class="h6"><?php esc_html_e( 'Shipping Method', 'woocommerce' ); ?></h4>
     75                                <p><?php echo $order->get_shipping_method(); ?></p>
     76                            </div>
     77                            <div class="col-sm-6">
     78                                <h4 class="h6"><?php esc_html_e( 'Payment Method', 'woocommerce' ); ?></h4>
     79                                <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
     80                            </div>
    9381                        </div>
    9482                    </div>
    9583                </div>
    9684                <div class="d-flex flex-wrap justify-content-between align-items-center mb-4">
    97                     <p class="mb-sm-0"><i class="material-icons align-bottom">
    98                             help_outline
    99                         </i> Need help? <a href="#">Contact us</a></p>
     85                    <p class="mb-sm-0"><i class="material-icons align-bottom">help_outline</i> <?php esc_html_e( 'Need help?', 'woocommerce' ); ?> <a href="#"><?php esc_html_e( 'Contact us', 'woocommerce' ); ?></a></p>
    10086                    <a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="btn btn-primary"><?php _e( 'Continue Shopping', 'wcs' ); ?></a>
    10187                </div>
     
    10894                <div class="card cart border-0 bg-light mb-3">
    10995                    <div class="card-body py-4">
    110                             <?php woocommerce_order_details_table( $order->get_id() ); ?>
     96                        <?php woocommerce_order_details_table( $order->get_id() ); ?>
    11197                    </div>
    11298                    <div class="card-footer border-0">
    11399                        <div class="d-flex justify-content-between align-items-center h5 mb-0">
    114                             <strong>Order Total</strong>
     100                            <strong><?php esc_html_e( 'Order Total', 'woocommerce' ); ?></strong>
    115101                            <span><?php echo $order->get_formatted_order_total(); ?></span>
    116102                        </div>
     
    118104                </div>
    119105                <div class="bg-light text-center p-3">
    120                     <i class="material-icons align-bottom">lock</i> Secure Checkout
     106                    <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?>
    121107                </div>
    122108            </div>
  • wc-express-checkout/trunk/express-checkout-for-woocommerce.php

    r2291992 r2295110  
    44 * Plugin URI: https://expresscheckout.app/
    55 * Description: Express Checkout instantly converts the default WooCommerce checkout into a beautiful, high converting checkout experience for your customers.
    6  * Version: 1.0.2
     6 * Version: 1.0.3
    77 * Author: expresscheckout
    88 * Author URI: http://expresscheckout.app/
  • wc-express-checkout/trunk/templates/woocommerce/express-checkout/cart/cart-totals.php

    r2290477 r2295110  
    2222    <div class="card cart border-0 bg-light mb-4">
    2323        <div class="card-body py-4">
    24             <?php do_action( 'woocommerce_before_cart_totals' ); ?>
     24              <?php do_action( 'woocommerce_before_cart_totals' ); ?>
    2525            <div class="d-flex justify-content-between mb-2">
    2626                <strong><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?></strong>
     
    3131                <span><?php echo __('Calculated at next step', 'woocommerce-express-checkout' ); ?></span>
    3232            </div>
    33             <?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
    34                 <div class="d-flex justify-content-between mb-2 fee">
    35                     <strong><?php echo esc_html( $fee->name ); ?></strong>
    36                     <span><?php wc_cart_totals_fee_html( $fee ); ?></span>
    37                 </div>
    38             <?php endforeach; ?>
    39             <?php foreach ( WC()->cart->get_coupons() as $code => $coupon ) : ?>
    40                 <div class="d-flex justify-content-between mb-2 cart-discount coupon-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
    41                     <strong><?php wc_cart_totals_coupon_label( $coupon ); ?></strong>
    42                     <span><?php wc_cart_totals_coupon_html( $coupon ); ?></span>
    43                 </div>
    44             <?php endforeach; ?>
    45             <?php
    46             if ( wc_tax_enabled() && ! WC()->cart->display_prices_including_tax() ) {
    47                 $taxable_address = WC()->customer->get_taxable_address();
    48                 $estimated_text  = '';
     33             <?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
     34                <div class="d-flex justify-content-between mb-2 fee">
     35                    <strong><?php echo esc_html( $fee->name ); ?></strong>
     36                    <span><?php wc_cart_totals_fee_html( $fee ); ?></span>
     37                </div>
     38             <?php endforeach; ?>
     39             <?php foreach ( WC()->cart->get_coupons() as $code => $coupon ) : ?>
     40                <div class="d-flex justify-content-between mb-2 cart-discount coupon-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
     41                    <strong><?php wc_cart_totals_coupon_label( $coupon ); ?></strong>
     42                    <span><?php wc_cart_totals_coupon_html( $coupon ); ?></span>
     43                </div>
     44             <?php endforeach; ?>
     45             <?php
     46              if ( wc_tax_enabled() && ! WC()->cart->display_prices_including_tax() ) {
     47                 $taxable_address = WC()->customer->get_taxable_address();
     48                 $estimated_text  = '';
     49                 if ( WC()->customer->is_customer_outside_base() && ! WC()->customer->has_calculated_shipping() ) {
     50                      /* translators: %s location. */
     51                     $estimated_text = sprintf( ' <small>' . esc_html__( '(estimated for %s)', 'woocommerce' ) . '</small>', WC()->countries->estimated_for_prefix( $taxable_address[0] ) . WC()->countries->countries[ $taxable_address[0] ] );
     52                 }
    4953
    50                 if ( WC()->customer->is_customer_outside_base() && ! WC()->customer->has_calculated_shipping() ) {
    51                     /* translators: %s location. */
    52                     $estimated_text = sprintf( ' <small>' . esc_html__( '(estimated for %s)', 'woocommerce' ) . '</small>', WC()->countries->estimated_for_prefix( $taxable_address[0] ) . WC()->countries->countries[ $taxable_address[0] ] );
    53                 }
     54                 if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) {
     55                     foreach ( WC()->cart->get_tax_totals() as $code => $tax ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
     56                     ?>
     57                     <div class="d-flex justify-content-between mb-2 tax-rate tax-rate-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
     58                         <strong><?php echo esc_html( $tax->label ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong>
     59                         <span><?php echo wp_kses_post( $tax->formatted_amount ); ?></span>
     60                     </div>
     61                     <?php
     62                     }
     63                 } else {
     64                      ?>
     65                      <div class="d-flex justify-content-between mb-2 tax-total">
     66                          <strong><?php echo esc_html( WC()->countries->tax_or_vat() ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong>
     67                         <span><?php wc_cart_totals_taxes_total_html(); ?></span>
     68                     </div>
     69                     <?php
     70                 }
     71             }
     72             ?>
    5473
    55                 if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) {
    56                     foreach ( WC()->cart->get_tax_totals() as $code => $tax ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
    57                     ?>
    58                         <div class="d-flex justify-content-between mb-2 tax-rate tax-rate-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
    59                             <strong><?php echo esc_html( $tax->label ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong>
    60                             <span><?php echo wp_kses_post( $tax->formatted_amount ); ?></span>
    61                         </div>
    62                         <?php
    63                     }
    64                 } else {
    65                     ?>
    66                     <div class="d-flex justify-content-between mb-2 tax-total">
    67                         <strong><?php echo esc_html( WC()->countries->tax_or_vat() ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong>
    68                         <span><?php wc_cart_totals_taxes_total_html(); ?></span>
    69                     </div>
    70                     <?php
    71                 }
    72             }
    73             ?>
    74 
    75             <?php do_action( 'woocommerce_cart_totals_before_order_total' ); ?>
     74             <?php do_action( 'woocommerce_cart_totals_before_order_total' ); ?>
    7675
    7776            <div class="d-flex justify-content-between h5 mb-2 mt-4">
     
    8079            </div>
    8180
    82             <?php do_action( 'woocommerce_cart_totals_after_order_total' ); ?>
    83             <?php do_action( 'woocommerce_proceed_to_checkout' ); ?>
     81             <?php do_action( 'woocommerce_cart_totals_after_order_total' ); ?>
     82             <?php do_action( 'woocommerce_proceed_to_checkout' ); ?>
    8483
    8584        </div>
    8685        <div class="card-footer p-0 mt-2 mb-2 ml-0 mr-0 border-0">
    87             <?php do_action( 'woocommerce_cart_coupon' ); ?>
     86              <?php do_action( 'woocommerce_cart_coupon' ); ?>
    8887        </div>
    89         <?php if ( wc_coupons_enabled() ) { ?>
    90         <div class="card-footer border-0">
    91             <a href="#collapseDiscount" class="discount d-flex justify-content-between align-items-center collapsed text-dark" role="button" data-toggle="collapse" aria-expanded="false" aria-controls="collapseDiscount">
    92                 <span class="small">Promo code?</span>
    93                 <i class="material-icons rotate-icon">keyboard_arrow_down</i>
    94             </a>
    95             <div class="collapse coupon" id="collapseDiscount">
    96                 <form class="form-row cart_coupon mt-3">
    97                     <div class="col">
    98                         <label class="sr-only" for="coupon_code"><?php esc_html_e( 'Coupon:', 'woocommerce' ); ?></label>
    99                         <input type="text" name="coupon_code" class="input-text form-control form-control-sm mb-2 mr-sm-2" id="coupon_code" value="<?php echo isset( $_GET['coupon_code'] ) ? esc_attr( $_GET['coupon_code'] ) : ''; ?>" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" />
    100                     </div>
    101                     <div class="col-auto">
    102                         <button type="submit" class="btn btn-primary btn-sm mb-2" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?></button>
    103                     </div>
    104                 </form>
    105             </div>
    106         </div>
    107         <?php } ?>
     88         <?php if ( wc_coupons_enabled() ) { ?>
     89          <div class="card-footer border-0">
     90             <a href="#collapseDiscount" class="discount d-flex justify-content-between align-items-center collapsed text-dark" role="button" data-toggle="collapse" aria-expanded="false" aria-controls="collapseDiscount">
     91                 <span class="small"><?php esc_attr_e( 'Promo code?', 'woocommerce' ); ?></span>
     92                 <i class="material-icons rotate-icon">keyboard_arrow_down</i>
     93             </a>
     94             <div class="collapse coupon" id="collapseDiscount">
     95                 <form class="form-row cart_coupon mt-3">
     96                     <div class="col">
     97                         <label class="sr-only" for="coupon_code"><?php esc_html_e( 'Coupon:', 'woocommerce' ); ?></label>
     98                         <input type="text" name="coupon_code" class="input-text form-control form-control-sm mb-2 mr-sm-2" id="coupon_code" value="<?php echo isset( $_GET['coupon_code'] ) ? esc_attr( $_GET['coupon_code'] ) : ''; ?>" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" />
     99                     </div>
     100                     <div class="col-auto">
     101                         <button type="submit" class="btn btn-primary btn-sm mb-2" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?></button>
     102                     </div>
     103                 </form>
     104             </div>
     105         </div>
     106         <?php } ?>
    108107    </div>
    109108    <div class="bg-light text-center p-3 wc-proceed-to-checkout">
    110         <i class="material-icons align-bottom">lock</i> Secure Checkout
     109        <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?>
    111110    </div>
    112111</div>
  • wc-express-checkout/trunk/templates/woocommerce/express-checkout/cart/cart.php

    r2290477 r2295110  
    9191                                        </div>
    9292                                        <div class="col-sm-4 text-sm-right">
    93                                              <?php
    94                                                 if ( $_product->is_sold_individually() ) {
    95                                                     $product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
    96                                                 } else {
    97                                                     $product_quantity = woocommerce_quantity_input(
    98                                                         array(
    99                                                             'input_name'   => "cart[{$cart_item_key}][qty]",
    100                                                             'input_value'  => $cart_item['quantity'],
    101                                                             'max_value'    => $_product->get_max_purchase_quantity(),
    102                                                             'min_value'    => '0',
    103                                                             'product_name' => $_product->get_name(),
    104                                                         ),
    105                                                         $_product,
    106                                                         false
    107                                                     );
    108                                                 }
    109 
    110                                                 echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok.
    111                                                  ?>
    112                                                  <div class="product-remove">
    113                                                     <?php
    114                                                     echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    115                                                         'woocommerce_cart_item_remove_link',
    116                                                         sprintf(
    117                                                             '<a href="%s" class="btn btn-link remove text-secondary" aria-label="%s" data-product_id="%s" data-product_sku="%s">Remove</a>',
    118                                                             esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
    119                                                             esc_html__( 'Remove this item', 'woocommerce' ),
    120                                                             esc_attr( $product_id ),
    121                                                             esc_attr( $_product->get_sku() )
    122                                                         ),
    123                                                         $cart_item_key
    124                                                     );
    125                                                     ?>
    126                                                  </div>
     93                                             <?php if ( $_product->is_sold_individually() ) {
     94                                                $product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
     95                                             } else {
     96                                                   $product_quantity = woocommerce_quantity_input(
     97                                                    array(
     98                                                        'input_name'   => "cart[{$cart_item_key}][qty]",
     99                                                        'input_value'  => $cart_item['quantity'],
     100                                                        'max_value'    => $_product->get_max_purchase_quantity(),
     101                                                        'min_value'    => '0',
     102                                                        'product_name' => $_product->get_name(),
     103                                                    ),
     104                                                    $_product,
     105                                                    false
     106                                                );
     107                                             }
     108                                             echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok.
     109                                             ?>
     110                                            <div class="product-remove">
     111                                                 <?php echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     112                                                     'woocommerce_cart_item_remove_link',
     113                                                     sprintf(
     114                                                        '<a href="%s" class="btn btn-link remove text-secondary" aria-label="%s" data-product_id="%s" data-product_sku="%s">%s</a>',
     115                                                          esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
     116                                                          esc_html__( 'Remove this item', 'woocommerce' ),
     117                                                          esc_attr( $product_id ),
     118                                                          esc_attr( $_product->get_sku() ),
     119                                                          esc_html__( 'Remove', 'woocommerce' )
     120                                                     ),
     121                                                     $cart_item_key
     122                                                 ); ?>
     123                                            </div>
    127124                                        </div>
    128125                                    </div>
  • wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/form-checkout.php

    r2290477 r2295110  
    4242            </div>
    4343            <div class="bg-light text-center p-3">
    44                 <i class="material-icons align-bottom">lock</i> Secure Checkout
     44                <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?>
    4545            </div>
    4646        </div>
  • wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/payment.php

    r2290477 r2295110  
    3030    <fieldset class="mb-4 ml-0">
    3131        <legend class="h6 mb-4"><?php echo __( 'Payment Information', 'woocommerce' ); ?></legend>
    32         <?php if ( WC()->cart->needs_payment() ) : ?>
    33             <ul class="wc_payment_methods payment_methods methods list-group mb-4 ml-0">
    34                 <?php
    35                 if ( ! empty( $available_gateways ) ) {
    36                     foreach ( $available_gateways as $gateway ) {
    37                         wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
    38                     }
    39                 } else {
    40                     echo '<li class="list-group-item woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>'; // @codingStandardsIgnoreLine
    41                 }
    42                 ?>
    43             </ul>
    44         <?php endif; ?>
     32         <?php if ( WC()->cart->needs_payment() ) : ?>
     33            <ul class="wc_payment_methods payment_methods methods list-group mb-4 ml-0">
     34                  <?php
     35                  if ( ! empty( $available_gateways ) ) {
     36                      foreach ( $available_gateways as $gateway ) {
     37                          wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
     38                      }
     39                  } else {
     40                      echo '<li class="list-group-item woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>'; // @codingStandardsIgnoreLine
     41                  }
     42                  ?>
     43            </ul>
     44         <?php endif; ?>
    4545        <div class="form-row place-order">
    4646            <noscript>
    47                 <?php
    48                 /* translators: $1 and $2 opening and closing emphasis tags respectively */
    49                 printf( esc_html__( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the %1$sUpdate Totals%2$s button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ), '<em>', '</em>' );
    50                 ?>
     47                   <?php
     48                   /* translators: $1 and $2 opening and closing emphasis tags respectively */
     49                   printf( esc_html__( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the %1$sUpdate Totals%2$s button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ), '<em>', '</em>' );
     50                   ?>
    5151                <br/><button type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php esc_attr_e( 'Update totals', 'woocommerce' ); ?>"><?php esc_html_e( 'Update totals', 'woocommerce' ); ?></button>
    5252            </noscript>
    5353
    54             <?php wc_get_template( 'checkout/terms.php' ); ?>
     54              <?php wc_get_template( 'checkout/terms.php' ); ?>
    5555
    56             <?php do_action( 'woocommerce_review_order_before_submit' ); ?>
     56              <?php do_action( 'woocommerce_review_order_before_submit' ); ?>
    5757
    58             <?php echo apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="btn btn-primary btn-lg btn-block mb-3" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . __( 'Complete Purchase', 'woocommerce' ) . '</button>' ); // @codingStandardsIgnoreLine ?>
     58              <?php echo apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="btn btn-primary btn-lg btn-block mb-3" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . __( 'Complete Purchase', 'woocommerce' ) . '</button>' ); // @codingStandardsIgnoreLine ?>
    5959
    60             <?php do_action( 'woocommerce_review_order_after_submit' ); ?>
     60              <?php do_action( 'woocommerce_review_order_after_submit' ); ?>
    6161
    62             <?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?>
     62              <?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?>
    6363        </div>
    6464        <div class="text-center">
    65             <a href="<?php echo wc_get_cart_url(); ?>" class="btn btn-link text-secondary"><u>Return to cart</u></a>
     65            <a href="<?php echo wc_get_cart_url(); ?>" class="btn btn-link text-secondary"><u><?php esc_html_e( 'Return to cart', 'woocommerce' ); ?></u></a>
    6666        </div>
    6767    </fieldset>
  • wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/thankyou.php

    r2292000 r2295110  
    4545                    </i>
    4646                    <div class="media-body">
    47                         <div class="mb-1">Order #<?php echo $order->get_id(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
    48                         <div class="h5">Thank you <?php echo $order->get_billing_first_name(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>!</div>
     47                        <div class="mb-1"><?php esc_html_e( 'Order', 'woocommerce' ); ?> #<?php echo $order->get_id(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
     48                        <div class="h5"><?php esc_html_e( 'Thank you', 'woocommerce' ); ?> <?php echo $order->get_billing_first_name(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>!</div>
    4949                    </div>
    5050                </div>
    5151                <div class="card bg-light border-0 mb-4">
    5252                    <div class="card-header border-0">
    53                         <h3 class="h6 mb-0">Your order is confirmed</h3>
     53                        <h3 class="h6 mb-0"><?php esc_html_e( 'Your order is confirmed', 'woocommerce' ); ?></h3>
    5454                    </div>
    5555                    <div class="card-body">
    56                         <p class="card-text">We've accepted your order, and we're getting it ready. A confirmation email has been sent to <strong><?php echo $order->get_billing_email(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong></p>
     56                        <p class="card-text"><?php esc_html_e( 'We\'ve accepted your order, and we\'re getting it ready. A confirmation email has been sent to', 'woocommerce' ); ?> <strong><?php echo $order->get_billing_email(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong></p>
    5757                    </div>
    5858                </div>
    5959                <div class="card bg-light border-0 mb-4">
    6060                    <div class="card-header border-0">
    61                         <h3 class="h6 mb-0">Customer information</h3>
     61                        <h3 class="h6 mb-0"><?php esc_html_e( 'Customer information', 'woocommerce' ); ?></h3>
    6262                    </div>
    6363                    <div class="card-body">
    6464                        <div class="row">
    65                                  <?php $show_shipping = ! wc_ship_to_billing_address_only() && $order->needs_shipping_address(); ?>
    66                                  <?php if( $show_shipping ) { ?>
    67                                <div class="col-sm-6">
    68                                    <h4 class="h6">Shipping Address</h4>
    69                                    <p><?php echo $order->get_formatted_shipping_address(); ?></p>
    70                                </div>
    71                                <div class="col-sm-6">
    72                                    <h4 class="h6">Billing Address</h4>
    73                                    <p><?php echo $order->get_formatted_billing_address(); ?></p>
    74                                </div>
    75                                <div class="col-sm-6">
    76                                    <h4 class="h6">Shipping Method</h4>
    77                                    <p><?php echo $order->get_shipping_method(); ?></p>
    78                                </div>
    79                                <div class="col-sm-6">
    80                                    <h4 class="h6">Payment Method</h4>
    81                                    <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
    82                                </div>
    83                                  <?php } else { ?>
    84                                <div class="col-sm-6">
    85                                    <h4 class="h6">Billing Address</h4>
    86                                    <p><?php echo $order->get_formatted_billing_address(); ?></p>
    87                                </div>
    88                                <div class="col-sm-6">
    89                                    <h4 class="h6">Payment Method</h4>
    90                                    <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
    91                                </div>
    92                                  <?php } ?>
     65                            <div class="col-sm-6">
     66                                <h4 class="h6"><?php esc_html_e( 'Shipping Address', 'woocommerce' ); ?></h4>
     67                                <p><?php echo $order->get_formatted_shipping_address(); ?></p>
     68                            </div>
     69                            <div class="col-sm-6">
     70                                <h4 class="h6"><?php esc_html_e( 'Billing Address', 'woocommerce' ); ?></h4>
     71                                <p><?php echo $order->get_formatted_billing_address(); ?></p>
     72                            </div>
     73                            <div class="col-sm-6">
     74                                <h4 class="h6"><?php esc_html_e( 'Shipping Method', 'woocommerce' ); ?></h4>
     75                                <p><?php echo $order->get_shipping_method(); ?></p>
     76                            </div>
     77                            <div class="col-sm-6">
     78                                <h4 class="h6"><?php esc_html_e( 'Payment Method', 'woocommerce' ); ?></h4>
     79                                <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
     80                            </div>
    9381                        </div>
    9482                    </div>
    9583                </div>
    9684                <div class="d-flex flex-wrap justify-content-between align-items-center mb-4">
    97                     <p class="mb-sm-0"><i class="material-icons align-bottom">
    98                             help_outline
    99                         </i> Need help? <a href="#">Contact us</a></p>
     85                    <p class="mb-sm-0"><i class="material-icons align-bottom">help_outline</i> <?php esc_html_e( 'Need help?', 'woocommerce' ); ?> <a href="#"><?php esc_html_e( 'Contact us', 'woocommerce' ); ?></a></p>
    10086                    <a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="btn btn-primary"><?php _e( 'Continue Shopping', 'wcs' ); ?></a>
    10187                </div>
     
    10894                <div class="card cart border-0 bg-light mb-3">
    10995                    <div class="card-body py-4">
    110                             <?php woocommerce_order_details_table( $order->get_id() ); ?>
     96                        <?php woocommerce_order_details_table( $order->get_id() ); ?>
    11197                    </div>
    11298                    <div class="card-footer border-0">
    11399                        <div class="d-flex justify-content-between align-items-center h5 mb-0">
    114                             <strong>Order Total</strong>
     100                            <strong><?php esc_html_e( 'Order Total', 'woocommerce' ); ?></strong>
    115101                            <span><?php echo $order->get_formatted_order_total(); ?></span>
    116102                        </div>
     
    118104                </div>
    119105                <div class="bg-light text-center p-3">
    120                     <i class="material-icons align-bottom">lock</i> Secure Checkout
     106                    <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?>
    121107                </div>
    122108            </div>
Note: See TracChangeset for help on using the changeset viewer.