Changeset 2295110
- Timestamp:
- 04/30/2020 08:02:31 AM (6 years ago)
- Location:
- wc-express-checkout
- Files:
-
- 11 edited
- 24 copied
-
tags/1.0.3 (copied) (copied from wc-express-checkout/trunk)
-
tags/1.0.3/assets (copied) (copied from wc-express-checkout/trunk/assets)
-
tags/1.0.3/assets/banner-772x250.png (copied) (copied from wc-express-checkout/trunk/assets/banner-772x250.png)
-
tags/1.0.3/assets/css/style.css (copied) (copied from wc-express-checkout/trunk/assets/css/style.css)
-
tags/1.0.3/assets/css/style.min.css (copied) (copied from wc-express-checkout/trunk/assets/css/style.min.css)
-
tags/1.0.3/assets/icon-128x128.png (copied) (copied from wc-express-checkout/trunk/assets/icon-128x128.png)
-
tags/1.0.3/assets/icon-256x256.png (copied) (copied from wc-express-checkout/trunk/assets/icon-256x256.png)
-
tags/1.0.3/assets/icon.png (copied) (copied from wc-express-checkout/trunk/assets/icon.png)
-
tags/1.0.3/banner-772x250.png (copied) (copied from wc-express-checkout/trunk/banner-772x250.png)
-
tags/1.0.3/classes (copied) (copied from wc-express-checkout/trunk/classes)
-
tags/1.0.3/classes/class-woocommerce-express-checkout-settings.php (copied) (copied from wc-express-checkout/trunk/classes/class-woocommerce-express-checkout-settings.php)
-
tags/1.0.3/classes/class-woocommerce-express-checkout.php (copied) (copied from wc-express-checkout/trunk/classes/class-woocommerce-express-checkout.php)
-
tags/1.0.3/express-checkout-for-woocommerce.php (copied) (copied from wc-express-checkout/trunk/express-checkout-for-woocommerce.php) (1 diff)
-
tags/1.0.3/icon-128x128.png (copied) (copied from wc-express-checkout/trunk/icon-128x128.png)
-
tags/1.0.3/icon-256x256.png (copied) (copied from wc-express-checkout/trunk/icon-256x256.png)
-
tags/1.0.3/icon.png (copied) (copied from wc-express-checkout/trunk/icon.png)
-
tags/1.0.3/readme.md (copied) (copied from wc-express-checkout/trunk/readme.md)
-
tags/1.0.3/readme.txt (copied) (copied from wc-express-checkout/trunk/readme.txt)
-
tags/1.0.3/screenshot-1.png (copied) (copied from wc-express-checkout/trunk/screenshot-1.png)
-
tags/1.0.3/screenshot-2.png (copied) (copied from wc-express-checkout/trunk/screenshot-2.png)
-
tags/1.0.3/screenshot-3.png (copied) (copied from wc-express-checkout/trunk/screenshot-3.png)
-
tags/1.0.3/templates (copied) (copied from wc-express-checkout/trunk/templates)
-
tags/1.0.3/templates/woocommerce/express-checkout/cart/cart-totals.php (modified) (3 diffs)
-
tags/1.0.3/templates/woocommerce/express-checkout/cart/cart.php (modified) (1 diff)
-
tags/1.0.3/templates/woocommerce/express-checkout/checkout/form-checkout.php (modified) (1 diff)
-
tags/1.0.3/templates/woocommerce/express-checkout/checkout/payment.php (modified) (1 diff)
-
tags/1.0.3/templates/woocommerce/express-checkout/checkout/thankyou.php (copied) (copied from wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/thankyou.php) (3 diffs)
-
tags/1.0.3/templates/woocommerce/express-checkout/order/order-details.php (copied) (copied from wc-express-checkout/trunk/templates/woocommerce/express-checkout/order/order-details.php)
-
trunk/assets/icon.png (modified) (previous)
-
trunk/express-checkout-for-woocommerce.php (modified) (1 diff)
-
trunk/templates/woocommerce/express-checkout/cart/cart-totals.php (modified) (3 diffs)
-
trunk/templates/woocommerce/express-checkout/cart/cart.php (modified) (1 diff)
-
trunk/templates/woocommerce/express-checkout/checkout/form-checkout.php (modified) (1 diff)
-
trunk/templates/woocommerce/express-checkout/checkout/payment.php (modified) (1 diff)
-
trunk/templates/woocommerce/express-checkout/checkout/thankyou.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-express-checkout/tags/1.0.3/express-checkout-for-woocommerce.php
r2291992 r2295110 4 4 * Plugin URI: https://expresscheckout.app/ 5 5 * Description: Express Checkout instantly converts the default WooCommerce checkout into a beautiful, high converting checkout experience for your customers. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: expresscheckout 8 8 * Author URI: http://expresscheckout.app/ -
wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/cart/cart-totals.php
r2290477 r2295110 22 22 <div class="card cart border-0 bg-light mb-4"> 23 23 <div class="card-body py-4"> 24 <?php do_action( 'woocommerce_before_cart_totals' ); ?>24 <?php do_action( 'woocommerce_before_cart_totals' ); ?> 25 25 <div class="d-flex justify-content-between mb-2"> 26 26 <strong><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?></strong> … … 31 31 <span><?php echo __('Calculated at next step', 'woocommerce-express-checkout' ); ?></span> 32 32 </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 } 49 53 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 ?> 54 73 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' ); ?> 76 75 77 76 <div class="d-flex justify-content-between h5 mb-2 mt-4"> … … 80 79 </div> 81 80 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' ); ?> 84 83 85 84 </div> 86 85 <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' ); ?> 88 87 </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 } ?> 108 107 </div> 109 108 <div class="bg-light text-center p-3 wc-proceed-to-checkout"> 110 <i class="material-icons align-bottom">lock</i> Secure Checkout109 <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?> 111 110 </div> 112 111 </div> -
wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/cart/cart.php
r2290477 r2295110 91 91 </div> 92 92 <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> 127 124 </div> 128 125 </div> -
wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/checkout/form-checkout.php
r2290477 r2295110 42 42 </div> 43 43 <div class="bg-light text-center p-3"> 44 <i class="material-icons align-bottom">lock</i> Secure Checkout44 <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?> 45 45 </div> 46 46 </div> -
wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/checkout/payment.php
r2290477 r2295110 30 30 <fieldset class="mb-4 ml-0"> 31 31 <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 <?php35 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>'; // @codingStandardsIgnoreLine41 }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; ?> 45 45 <div class="form-row place-order"> 46 46 <noscript> 47 <?php48 /* 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 ?> 51 51 <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> 52 52 </noscript> 53 53 54 <?php wc_get_template( 'checkout/terms.php' ); ?>54 <?php wc_get_template( 'checkout/terms.php' ); ?> 55 55 56 <?php do_action( 'woocommerce_review_order_before_submit' ); ?>56 <?php do_action( 'woocommerce_review_order_before_submit' ); ?> 57 57 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 ?> 59 59 60 <?php do_action( 'woocommerce_review_order_after_submit' ); ?>60 <?php do_action( 'woocommerce_review_order_after_submit' ); ?> 61 61 62 <?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?>62 <?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?> 63 63 </div> 64 64 <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> 66 66 </div> 67 67 </fieldset> -
wc-express-checkout/tags/1.0.3/templates/woocommerce/express-checkout/checkout/thankyou.php
r2292000 r2295110 45 45 </i> 46 46 <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> 49 49 </div> 50 50 </div> 51 51 <div class="card bg-light border-0 mb-4"> 52 52 <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> 54 54 </div> 55 55 <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> 57 57 </div> 58 58 </div> 59 59 <div class="card bg-light border-0 mb-4"> 60 60 <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> 62 62 </div> 63 63 <div class="card-body"> 64 64 <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> 93 81 </div> 94 82 </div> 95 83 </div> 96 84 <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> 100 86 <a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="btn btn-primary"><?php _e( 'Continue Shopping', 'wcs' ); ?></a> 101 87 </div> … … 108 94 <div class="card cart border-0 bg-light mb-3"> 109 95 <div class="card-body py-4"> 110 <?php woocommerce_order_details_table( $order->get_id() ); ?>96 <?php woocommerce_order_details_table( $order->get_id() ); ?> 111 97 </div> 112 98 <div class="card-footer border-0"> 113 99 <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> 115 101 <span><?php echo $order->get_formatted_order_total(); ?></span> 116 102 </div> … … 118 104 </div> 119 105 <div class="bg-light text-center p-3"> 120 <i class="material-icons align-bottom">lock</i> Secure Checkout106 <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?> 121 107 </div> 122 108 </div> -
wc-express-checkout/trunk/express-checkout-for-woocommerce.php
r2291992 r2295110 4 4 * Plugin URI: https://expresscheckout.app/ 5 5 * Description: Express Checkout instantly converts the default WooCommerce checkout into a beautiful, high converting checkout experience for your customers. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: expresscheckout 8 8 * Author URI: http://expresscheckout.app/ -
wc-express-checkout/trunk/templates/woocommerce/express-checkout/cart/cart-totals.php
r2290477 r2295110 22 22 <div class="card cart border-0 bg-light mb-4"> 23 23 <div class="card-body py-4"> 24 <?php do_action( 'woocommerce_before_cart_totals' ); ?>24 <?php do_action( 'woocommerce_before_cart_totals' ); ?> 25 25 <div class="d-flex justify-content-between mb-2"> 26 26 <strong><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?></strong> … … 31 31 <span><?php echo __('Calculated at next step', 'woocommerce-express-checkout' ); ?></span> 32 32 </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 } 49 53 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 ?> 54 73 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' ); ?> 76 75 77 76 <div class="d-flex justify-content-between h5 mb-2 mt-4"> … … 80 79 </div> 81 80 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' ); ?> 84 83 85 84 </div> 86 85 <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' ); ?> 88 87 </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 } ?> 108 107 </div> 109 108 <div class="bg-light text-center p-3 wc-proceed-to-checkout"> 110 <i class="material-icons align-bottom">lock</i> Secure Checkout109 <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?> 111 110 </div> 112 111 </div> -
wc-express-checkout/trunk/templates/woocommerce/express-checkout/cart/cart.php
r2290477 r2295110 91 91 </div> 92 92 <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> 127 124 </div> 128 125 </div> -
wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/form-checkout.php
r2290477 r2295110 42 42 </div> 43 43 <div class="bg-light text-center p-3"> 44 <i class="material-icons align-bottom">lock</i> Secure Checkout44 <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?> 45 45 </div> 46 46 </div> -
wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/payment.php
r2290477 r2295110 30 30 <fieldset class="mb-4 ml-0"> 31 31 <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 <?php35 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>'; // @codingStandardsIgnoreLine41 }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; ?> 45 45 <div class="form-row place-order"> 46 46 <noscript> 47 <?php48 /* 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 ?> 51 51 <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> 52 52 </noscript> 53 53 54 <?php wc_get_template( 'checkout/terms.php' ); ?>54 <?php wc_get_template( 'checkout/terms.php' ); ?> 55 55 56 <?php do_action( 'woocommerce_review_order_before_submit' ); ?>56 <?php do_action( 'woocommerce_review_order_before_submit' ); ?> 57 57 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 ?> 59 59 60 <?php do_action( 'woocommerce_review_order_after_submit' ); ?>60 <?php do_action( 'woocommerce_review_order_after_submit' ); ?> 61 61 62 <?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?>62 <?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?> 63 63 </div> 64 64 <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> 66 66 </div> 67 67 </fieldset> -
wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/thankyou.php
r2292000 r2295110 45 45 </i> 46 46 <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> 49 49 </div> 50 50 </div> 51 51 <div class="card bg-light border-0 mb-4"> 52 52 <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> 54 54 </div> 55 55 <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> 57 57 </div> 58 58 </div> 59 59 <div class="card bg-light border-0 mb-4"> 60 60 <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> 62 62 </div> 63 63 <div class="card-body"> 64 64 <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> 93 81 </div> 94 82 </div> 95 83 </div> 96 84 <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> 100 86 <a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="btn btn-primary"><?php _e( 'Continue Shopping', 'wcs' ); ?></a> 101 87 </div> … … 108 94 <div class="card cart border-0 bg-light mb-3"> 109 95 <div class="card-body py-4"> 110 <?php woocommerce_order_details_table( $order->get_id() ); ?>96 <?php woocommerce_order_details_table( $order->get_id() ); ?> 111 97 </div> 112 98 <div class="card-footer border-0"> 113 99 <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> 115 101 <span><?php echo $order->get_formatted_order_total(); ?></span> 116 102 </div> … … 118 104 </div> 119 105 <div class="bg-light text-center p-3"> 120 <i class="material-icons align-bottom">lock</i> Secure Checkout106 <i class="material-icons align-bottom">lock</i> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?> 121 107 </div> 122 108 </div>
Note: See TracChangeset
for help on using the changeset viewer.