block
1 month ago
plain
1 month ago
admin-cancelled-order.php
1 year ago
admin-failed-order.php
7 months ago
admin-new-order.php
7 months ago
admin-payment-gateway-enabled.php
2 months ago
customer-cancelled-order.php
7 months ago
customer-completed-order.php
7 months ago
customer-failed-order.php
7 months ago
customer-fulfillment-created.php
7 months ago
customer-fulfillment-deleted.php
7 months ago
customer-fulfillment-updated.php
1 month ago
customer-invoice.php
7 months ago
customer-new-account.php
7 months ago
customer-note.php
7 months ago
customer-on-hold-order.php
7 months ago
customer-pos-completed-order.php
7 months ago
customer-pos-refunded-order.php
7 months ago
customer-processing-order.php
7 months ago
customer-refunded-order.php
7 months ago
customer-reset-password.php
7 months ago
customer-stock-notification-verified.php
9 months ago
customer-stock-notification-verify.php
9 months ago
customer-stock-notification.php
9 months ago
email-addresses.php
4 months ago
email-customer-details.php
1 year ago
email-downloads.php
7 months ago
email-footer.php
7 months ago
email-fulfillment-details.php
2 months ago
email-fulfillment-items.php
1 month ago
email-header.php
2 months ago
email-mobile-messaging.php
2 years ago
email-order-details.php
1 month ago
email-order-items.php
1 month ago
email-styles.php
1 month ago
customer-stock-notification-verified.php
96 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customer back-in-stock notification confirmation email. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-stock-notification-verified.php. |
| 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 |
| 15 | * @version 10.2.0 |
| 16 | */ |
| 17 | |
| 18 | // Exit if accessed directly. |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Hook: woocommerce_email_header. |
| 25 | * |
| 26 | * @since 10.2.0 |
| 27 | * |
| 28 | * @hooked WC_Emails::email_header() Output the email header |
| 29 | */ |
| 30 | do_action( 'woocommerce_email_header', $email_heading, $email ); |
| 31 | |
| 32 | ?> |
| 33 | |
| 34 | <table border="0" cellpadding="0" cellspacing="0" id="notification__container"><tr><td> |
| 35 | |
| 36 | <div id="notification__into_content"> |
| 37 | <?php echo wp_kses_post( wpautop( wptexturize( $intro_content ) ) ); ?> |
| 38 | </div> |
| 39 | |
| 40 | <div id="notification__product"> |
| 41 | <?php |
| 42 | /** |
| 43 | * Hook: woocommerce_email_stock_notification_product. |
| 44 | * |
| 45 | * @since 10.2.0 |
| 46 | * |
| 47 | * @hooked \Automattic\WooCommerce\Internal\StockNotifications\Templates::email_product_image - 10 |
| 48 | * @hooked \Automattic\WooCommerce\Internal\StockNotifications\Templates::email_product_title - 20 |
| 49 | * @hooked \Automattic\WooCommerce\Internal\StockNotifications\Templates::email_product_attributes - 30 |
| 50 | * @hooked \Automattic\WooCommerce\Internal\StockNotifications\Templates::email_product_price - 40 |
| 51 | */ |
| 52 | do_action( 'woocommerce_email_stock_notification_product', $product, $notification, $plain_text, $email ); |
| 53 | ?> |
| 54 | </div> |
| 55 | |
| 56 | <table id="notification__footer"><tr><td> |
| 57 | <?php |
| 58 | echo esc_html( sprintf( __( 'You have received this message because your e-mail address was used to sign up for stock notifications on our store.', 'woocommerce' ), $product->get_name() ) ); |
| 59 | |
| 60 | if ( ! $is_guest ) { |
| 61 | // translators: %1$s placeholder is the unsubscribe link, %2$s placeholder is the Unsubscribe text link. |
| 62 | $unsubscribe_link_tag = sprintf( '<a href="%1$s" id="notification__unsubscribe_link">%2$s</a>', esc_url( $unsubscribe_link ), _x( 'click here', 'unsubscribe cta for stock notifications for existing customers', 'woocommerce' ) ); |
| 63 | // translators: %s placeholder is the text part from above. |
| 64 | echo wp_kses_post( sprintf( __( 'To manage your notifications, %s to log in to your account.', 'woocommerce' ), $unsubscribe_link_tag ) ); |
| 65 | } else { |
| 66 | // translators: %1$s placeholder is the unsubscribe link, %2$s placeholder is the Unsubscribe text link. |
| 67 | $unsubscribe_link_tag = sprintf( '<a href="%1$s" id="notification__unsubscribe_link">%2$s</a>', esc_url( $unsubscribe_link ), _x( 'click here', 'unsubscribe cta for stock notifications for guests', 'woocommerce' ) ); |
| 68 | // translators: %s placeholder is the text part from above. |
| 69 | echo wp_kses_post( sprintf( __( 'To stop receiving these messages, %s to unsubscribe.', 'woocommerce' ), $unsubscribe_link_tag ) ); |
| 70 | } |
| 71 | ?> |
| 72 | <br><br> |
| 73 | <?php |
| 74 | |
| 75 | /** |
| 76 | * Show user-defined additional content - this is set in each email's settings. |
| 77 | */ |
| 78 | if ( $additional_content ) { |
| 79 | echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) ); |
| 80 | } |
| 81 | ?> |
| 82 | </td></tr></table> |
| 83 | |
| 84 | </td></tr></table> |
| 85 | |
| 86 | <?php |
| 87 | |
| 88 | /** |
| 89 | * Hook: woocommerce_email_footer. |
| 90 | * |
| 91 | * @since 10.2.0 |
| 92 | * |
| 93 | * @hooked WC_Emails::email_footer() Output the email footer |
| 94 | */ |
| 95 | do_action( 'woocommerce_email_footer', $email ); |
| 96 |