admin-cancelled-order.php
3 months ago
admin-failed-order.php
3 months ago
admin-new-order.php
9 months ago
customer-cancelled-order.php
3 months ago
customer-completed-order.php
3 months ago
customer-failed-order.php
3 months ago
customer-fulfillment-created.php
3 months ago
customer-fulfillment-deleted.php
3 months ago
customer-fulfillment-updated.php
3 months ago
customer-invoice.php
3 months ago
customer-new-account.php
3 months ago
customer-note.php
3 months ago
customer-on-hold-order.php
3 months ago
customer-partially-refunded-order.php
3 months ago
customer-pos-completed-order.php
9 months ago
customer-pos-refunded-order.php
4 months ago
customer-processing-order.php
3 months ago
customer-refunded-order.php
3 months ago
customer-reset-password.php
3 months ago
default-block-content.php
3 months ago
general-block-content-for-fulfillment-emails.php
4 months ago
general-block-email.php
4 months ago
customer-failed-order.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customer failed order email (initial block content) |
| 4 | * |
| 5 | * This template can be overridden by editing it in the WooCommerce email editor. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates\Emails\Block |
| 15 | * @version 10.6.0 |
| 16 | */ |
| 17 | |
| 18 | use Automattic\WooCommerce\Internal\EmailEditor\BlockEmailRenderer; |
| 19 | |
| 20 | defined( 'ABSPATH' ) || exit; |
| 21 | |
| 22 | // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentBeforeOpen -- removed to prevent empty new lines. |
| 23 | // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentAfterEnd -- removed to prevent empty new lines. |
| 24 | ?> |
| 25 | |
| 26 | <!-- wp:heading --> |
| 27 | <h2 class="wp-block-heading"> <?php echo esc_html__( 'Sorry, your order was unsuccessful', 'woocommerce' ); ?> </h2> |
| 28 | <!-- /wp:heading --> |
| 29 | |
| 30 | <!-- wp:paragraph --> |
| 31 | <p><?php |
| 32 | /* translators: %s: Customer first name */ |
| 33 | printf( esc_html__( 'Hi %s,', 'woocommerce' ), '<!--[woocommerce/customer-first-name]-->' ); |
| 34 | ?></p> |
| 35 | <!-- /wp:paragraph --> |
| 36 | |
| 37 | <!-- wp:paragraph --> |
| 38 | <p> <?php echo esc_html__( "Unfortunately, we couldn't complete your order due to an issue with your payment method.", 'woocommerce' ); ?> </p> |
| 39 | <!-- /wp:paragraph --> |
| 40 | |
| 41 | <!-- wp:paragraph --> |
| 42 | <p><?php |
| 43 | /* translators: %s: Site title */ |
| 44 | printf( esc_html__( "If you'd like to continue with your purchase, please return to %s and try a different method of payment.", 'woocommerce' ), '<!--[woocommerce/site-title]-->' ) |
| 45 | ?></p> |
| 46 | <!-- /wp:paragraph --> |
| 47 | |
| 48 | <!-- wp:paragraph --> |
| 49 | <p> <?php echo esc_html__( 'Your order details are as follows:', 'woocommerce' ); ?> </p> |
| 50 | <!-- /wp:paragraph --> |
| 51 | |
| 52 | <!-- wp:woocommerce/email-content {"lock":{"move":false,"remove":true}} --> |
| 53 | <div class="wp-block-woocommerce-email-content"> <?php echo esc_html( BlockEmailRenderer::WOO_EMAIL_CONTENT_PLACEHOLDER ); ?> </div> |
| 54 | <!-- /wp:woocommerce/email-content --> |
| 55 | |
| 56 | <!-- wp:paragraph {"align":"center"} --> |
| 57 | <p class="has-text-align-center"><?php |
| 58 | /* translators: %s: Store admin email */ |
| 59 | printf( esc_html__( 'If you need any help with your order, please contact us at %s.', 'woocommerce' ), '<!--[woocommerce/store-email]-->' ); |
| 60 | ?></p> |
| 61 | <!-- /wp:paragraph --> |
| 62 |