Changeset 2291751
- Timestamp:
- 04/25/2020 08:16:24 PM (6 years ago)
- Location:
- wc-express-checkout
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wc-express-checkout/tags/1.0.1/templates/woocommerce/express-checkout/checkout/thankyou.php
r2291750 r2291751 27 27 <?php if ( $order->has_status( 'failed' ) ) : ?> 28 28 29 <p class="woocommerce-notice woocommerce-notice--error woocommerce-thankyou-order-failed"><?php esc_html_e( 'Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction. Please attempt your purchase again.', 'woocommerce' ); ?></p>29 <p class="woocommerce-notice woocommerce-notice--error woocommerce-thankyou-order-failed"><?php esc_html_e( 'Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction. Please attempt your purchase again.', 'woocommerce' ); ?></p> 30 30 31 <p class="woocommerce-notice woocommerce-notice--error woocommerce-thankyou-order-failed-actions"> 32 <a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php esc_html_e( 'Pay', 'woocommerce' ); ?></a> 33 <?php if ( is_user_logged_in() ) : ?> 34 <a href="<?php echo esc_url( wc_get_page_permalink( 'myaccount' ) ); ?>" class="button pay"><?php esc_html_e( 'My account', 'woocommerce' ); ?></a> 35 <?php endif; ?> 36 </p> 37 38 <?php else : ?> 39 40 <div class="row"> 41 <div class="col-lg-7"> 42 <div class="media align-items-center mb-4"> 43 <i class="material-icons text-success display-3 mr-2"> 44 check_circle_outline 45 </i> 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> 49 </div> 50 </div> 51 <div class="card bg-light border-0 mb-4"> 52 <div class="card-header border-0"> 53 <h3 class="h6 mb-0">Your order is confirmed</h3> 54 </div> 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> 57 </div> 58 </div> 59 <div class="card bg-light border-0 mb-4"> 60 <div class="card-header border-0"> 61 <h3 class="h6 mb-0">Customer information</h3> 62 </div> 63 <div class="card-body"> 64 <div class="row"> 65 <div class="col-sm-6"> 66 <h4 class="h6">Shipping Address</h4> 67 <p><?php echo $order->get_formatted_shipping_address(); ?></p> 68 </div> 69 <div class="col-sm-6"> 70 <h4 class="h6">Billing Address</h4> 71 <p><?php echo $order->get_formatted_billing_address(); ?></p> 72 </div> 73 <div class="col-sm-6"> 74 <h4 class="h6">Shipping Method</h4> 75 <p><?php echo $order->get_shipping_method(); ?></p> 76 </div> 77 <div class="col-sm-6"> 78 <h4 class="h6">Payment Method</h4> 79 <p class="payments"><?php echo $order->get_payment_method_title(); ?></p> 80 </div> 81 </div> 82 </div> 83 </div> 84 <div class="d-flex flex-wrap justify-content-between align-items-center mb-4"> 85 <p class="mb-sm-0"><i class="material-icons align-bottom"> 86 help_outline 87 </i> Need help? <a href="#">Contact us</a></p> 88 <a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="btn btn-primary"><?php _e( 'Continue Shopping', 'wcs' ); ?></a> 89 </div> 90 <div class="d-flex flex-wrap justify-content-between align-items-center mb-4"> 91 <?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?> 92 <?php do_action( 'woocommerce_thankyou', $order->get_id() ); ?> 93 </div> 94 </div> 95 <div class="col-lg-5"> 96 <div class="card cart border-0 bg-light mb-3"> 97 <div class="card-body py-4"> 98 <?php woocommerce_order_details_table( $order->get_id() ); ?> 99 </div> 100 <div class="card-footer border-0"> 101 <div class="d-flex justify-content-between align-items-center h5 mb-0"> 102 <strong>Order Total</strong> 103 <span><?php echo $order->get_total(); ?></span> 104 </div> 105 </div> 106 </div> 107 <div class="bg-light text-center p-3"> 108 <i class="material-icons align-bottom">lock</i> Secure Checkout 109 </div> 110 </div> 111 </div> 112 113 <?php endif; ?> 31 <p class="woocommerce-notice woocommerce-notice--error woocommerce-thankyou-order-failed-actions"> 32 <a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php esc_html_e( 'Pay', 'woocommerce' ); ?></a> 33 <?php if ( is_user_logged_in() ) : ?> 34 <a href="<?php echo esc_url( wc_get_page_permalink( 'myaccount' ) ); ?>" class="button pay"><?php esc_html_e( 'My account', 'woocommerce' ); ?></a> 35 <?php endif; ?> 36 </p> 114 37 115 38 <?php else : ?> 116 39 117 <p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), null ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p> 40 <div class="row"> 41 <div class="col-lg-7"> 42 <div class="media align-items-center mb-4"> 43 <i class="material-icons text-success display-3 mr-2"> 44 check_circle_outline 45 </i> 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> 49 </div> 50 </div> 51 <div class="card bg-light border-0 mb-4"> 52 <div class="card-header border-0"> 53 <h3 class="h6 mb-0">Your order is confirmed</h3> 54 </div> 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> 57 </div> 58 </div> 59 <div class="card bg-light border-0 mb-4"> 60 <div class="card-header border-0"> 61 <h3 class="h6 mb-0">Customer information</h3> 62 </div> 63 <div class="card-body"> 64 <div class="row"> 65 <div class="col-sm-6"> 66 <h4 class="h6">Shipping Address</h4> 67 <p><?php echo $order->get_formatted_shipping_address(); ?></p> 68 </div> 69 <div class="col-sm-6"> 70 <h4 class="h6">Billing Address</h4> 71 <p><?php echo $order->get_formatted_billing_address(); ?></p> 72 </div> 73 <div class="col-sm-6"> 74 <h4 class="h6">Shipping Method</h4> 75 <p><?php echo $order->get_shipping_method(); ?></p> 76 </div> 77 <div class="col-sm-6"> 78 <h4 class="h6">Payment Method</h4> 79 <p class="payments"><?php echo $order->get_payment_method_title(); ?></p> 80 </div> 81 </div> 82 </div> 83 </div> 84 <div class="d-flex flex-wrap justify-content-between align-items-center mb-4"> 85 <p class="mb-sm-0"><i class="material-icons align-bottom"> 86 help_outline 87 </i> Need help? <a href="#">Contact us</a></p> 88 <a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="btn btn-primary"><?php _e( 'Continue Shopping', 'wcs' ); ?></a> 89 </div> 90 <div class="d-flex flex-wrap justify-content-between align-items-center mb-4"> 91 <?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?> 92 <?php do_action( 'woocommerce_thankyou', $order->get_id() ); ?> 93 </div> 94 </div> 95 <div class="col-lg-5"> 96 <div class="card cart border-0 bg-light mb-3"> 97 <div class="card-body py-4"> 98 <?php woocommerce_order_details_table( $order->get_id() ); ?> 99 </div> 100 <div class="card-footer border-0"> 101 <div class="d-flex justify-content-between align-items-center h5 mb-0"> 102 <strong>Order Total</strong> 103 <?php 104 $currency_code = $order->get_currency(); 105 $currency_symbol = get_woocommerce_currency_symbol( $currency_code ); 106 ?> 107 <span><?php echo $currency_symbol . $order->get_formatted_order_total(); ?></span> 108 </div> 109 </div> 110 </div> 111 <div class="bg-light text-center p-3"> 112 <i class="material-icons align-bottom">lock</i> Secure Checkout 113 </div> 114 </div> 115 </div> 116 117 <?php endif; ?> 118 119 <?php else : ?> 120 121 <p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), null ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p> 118 122 119 123 <?php endif; ?> -
wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/thankyou.php
r2291750 r2291751 101 101 <div class="d-flex justify-content-between align-items-center h5 mb-0"> 102 102 <strong>Order Total</strong> 103 <span><?php echo $order->get_total(); ?></span> 103 <?php 104 $currency_code = $order->get_currency(); 105 $currency_symbol = get_woocommerce_currency_symbol( $currency_code ); 106 ?> 107 <span><?php echo $currency_symbol . $order->get_formatted_order_total(); ?></span> 104 108 </div> 105 109 </div>
Note: See TracChangeset
for help on using the changeset viewer.