admin-cancelled-order.php
1 year ago
admin-failed-order.php
1 year ago
admin-new-order.php
1 year ago
admin-payment-gateway-enabled.php
5 months ago
customer-abandoned-cart-recovery.php
1 month ago
customer-cancelled-order.php
1 year ago
customer-completed-order.php
1 year ago
customer-failed-order.php
1 year ago
customer-fulfillment-created.php
1 year ago
customer-fulfillment-deleted.php
1 year ago
customer-fulfillment-updated.php
4 months ago
customer-invoice.php
1 year ago
customer-new-account.php
2 months ago
customer-note.php
1 year ago
customer-on-hold-order.php
1 year ago
customer-pos-completed-order.php
1 year ago
customer-pos-refunded-order.php
1 year ago
customer-processing-order.php
1 year ago
customer-refunded-order.php
1 year ago
customer-reset-password.php
2 months ago
customer-review-request.php
3 months ago
customer-stock-notification-verified.php
1 year ago
customer-stock-notification-verify.php
1 year ago
customer-stock-notification.php
1 year ago
customer-verify-email.php
1 month ago
email-addresses.php
2 years ago
email-customer-details.php
2 years ago
email-downloads.php
2 years ago
email-fulfillment-details.php
1 year ago
email-fulfillment-items.php
4 months ago
email-order-details.php
4 months ago
email-order-items.php
4 months ago
customer-review-request.php
70 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customer review request email (plain text) |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/customer-review-request.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\Plain |
| 15 | * @version 10.8.0 |
| 16 | */ |
| 17 | |
| 18 | // phpcs:disable Universal.WhiteSpace.PrecisionAlignment.Found, Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed -- Plain text output needs specific spacing without tabs |
| 19 | |
| 20 | defined( 'ABSPATH' ) || exit; |
| 21 | |
| 22 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n"; |
| 23 | echo esc_html( wp_strip_all_tags( $email_heading ) ); |
| 24 | echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 25 | |
| 26 | if ( ! empty( $order->get_billing_first_name() ) ) { |
| 27 | /* translators: %s: Customer first name */ |
| 28 | echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) ) . "\n\n"; |
| 29 | } else { |
| 30 | echo esc_html__( 'Hi,', 'woocommerce' ) . "\n\n"; |
| 31 | } |
| 32 | |
| 33 | echo esc_html__( 'We’d love to know what you thought of the products you ordered. Your review helps other shoppers make better decisions and helps us improve.', 'woocommerce' ) . "\n\n"; |
| 34 | |
| 35 | if ( ! empty( $review_order_url ) ) { |
| 36 | echo esc_html__( 'Leave a review:', 'woocommerce' ) . "\n"; |
| 37 | echo esc_url( $review_order_url ) . "\n\n"; |
| 38 | } |
| 39 | |
| 40 | if ( $order instanceof WC_Order ) { |
| 41 | $date_created = $order->get_date_created(); |
| 42 | printf( |
| 43 | /* translators: 1: order number, 2: order date */ |
| 44 | esc_html__( 'Order #%1$s (%2$s)', 'woocommerce' ), |
| 45 | esc_html( $order->get_order_number() ), |
| 46 | esc_html( $date_created ? wc_format_datetime( $date_created ) : '' ) |
| 47 | ); |
| 48 | echo "\n\n"; |
| 49 | } |
| 50 | |
| 51 | echo "----------------------------------------\n\n"; |
| 52 | |
| 53 | /** |
| 54 | * Show user-defined additional content - this is set in each email's settings. |
| 55 | */ |
| 56 | if ( $additional_content ) { |
| 57 | echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); |
| 58 | echo "\n\n----------------------------------------\n\n"; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Filter the email footer text. |
| 63 | * |
| 64 | * @param string $footer_text The footer text. |
| 65 | * @since 2.3.0 |
| 66 | */ |
| 67 | echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); |
| 68 | |
| 69 | // phpcs:enable Universal.WhiteSpace.PrecisionAlignment.Found, Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed |
| 70 |