abandoned-orders
3 years ago
bumps
3 years ago
cancellation-insights
3 years ago
coupons
3 years ago
customers
3 years ago
invoices
3 years ago
licenses
3 years ago
notices
2 years ago
onboarding
3 years ago
orders
2 years ago
product-collections
2 years ago
product-groups
3 years ago
products
2 years ago
subscriptions
2 years ago
upgrade-paths
3 years ago
advanced.php
2 years ago
coming-soon.php
3 years ago
connection-invalid.php
3 years ago
connection.php
3 years ago
denied.php
3 years ago
plugin.php
3 years ago
settings-page.php
3 years ago
settings.php
3 years ago
store.php
3 years ago
user-profile.php
3 years ago
user-profile.php
42 lines
| 1 | <h2><?php esc_html_e( 'SureCart', 'surecart' ); ?></h2> |
| 2 | |
| 3 | <table class="form-table"> |
| 4 | <tr> |
| 5 | <th><?php esc_html_e( 'Customer', 'surecart' ); ?></th> |
| 6 | |
| 7 | <?php if ( ! empty( $test_customer ) ) : ?> |
| 8 | <?php if ( is_wp_error( $test_customer ) ) : ?> |
| 9 | <td> |
| 10 | <?php echo wp_kses_post( $test_customer->get_error_message() ); ?> (<?php esc_html_e( 'Test', 'surecart' ); ?>) |
| 11 | </td> |
| 12 | <?php else : ?> |
| 13 | <td> |
| 14 | <a href="<?php echo esc_url( $edit_test_link ); ?>"> |
| 15 | <?php echo wp_kses_post( $test_customer->name ?? $test_customer->email ); ?> |
| 16 | </a> |
| 17 | |
| 18 | (<?php esc_html_e( 'Test', 'surecart' ); ?>) |
| 19 | </td> |
| 20 | <?php endif; ?> |
| 21 | <?php endif; ?> |
| 22 | |
| 23 | <?php if ( ! empty( $live_customer ) ) : ?> |
| 24 | <?php if ( is_wp_error( $test_customer ) ) : ?> |
| 25 | <td> |
| 26 | <?php echo wp_kses_post( $test_customer->get_error_message() ); ?> |
| 27 | </td> |
| 28 | <?php else : ?> |
| 29 | <td> |
| 30 | <a href="<?php echo esc_url( $edit_live_link ); ?>"> |
| 31 | <?php echo wp_kses_post( $live_customer->name ?? $live_customer->email ); ?> |
| 32 | </a> |
| 33 | </td> |
| 34 | <?php endif; ?> |
| 35 | <?php endif; ?> |
| 36 | |
| 37 | <?php if ( empty( $live_customer ) && empty( $test_customer ) ) : ?> |
| 38 | <?php esc_html_e( 'This user is not a customer.', 'surecart' ); ?> |
| 39 | <?php endif; ?> |
| 40 | </tr> |
| 41 | </table> |
| 42 |