tier-pricing-table
/
src
/
Addons
/
RequestAQuote
/
views
/
emails
/
plain
/
customer-quote-request.php
customer-quote-request.php in Tiered Pricing Table for WooCommerce 7.1.7, at src/Addons/RequestAQuote/views/emails/plain/customer-quote-request.php
| 1 | <?php |
| 2 | /** |
| 3 | * Customer Quote Request Email (Plain text) |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/tiered-pricing-table/emails/plain/customer-quote-request.php. |
| 6 | */ |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; |
| 10 | } |
| 11 | |
| 12 | if ( $quotePost instanceof \TierPricingTable\Addons\RequestAQuote\Models\QuoteRequest ) { |
| 13 | $productId = $quotePost->getProductId(); |
| 14 | $product = wc_get_product( $productId ); |
| 15 | } else { |
| 16 | $product = false; |
| 17 | } |
| 18 | |
| 19 | echo "= " . esc_html( $emailHeading ) . " =\n\n"; |
| 20 | |
| 21 | echo esc_html__( 'Thank you for your quote request. We have received it and will process it shortly. Here are the details of your request:', 'tier-pricing-table' ) . "\n\n"; |
| 22 | |
| 23 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n"; |
| 24 | |
| 25 | echo esc_html__( 'Product', 'tier-pricing-table' ) . ': ' . ( $product ? wp_kses_post( $product->get_name() ) : esc_html__( 'Unknown', 'tier-pricing-table' ) ) . "\n"; |
| 26 | |
| 27 | $fields = $email->get_submitted_fields(); |
| 28 | if ( ! empty( $fields ) ) { |
| 29 | foreach ( $fields as $field ) { |
| 30 | echo esc_html( $field['label'] ) . ': ' . wp_strip_all_tags( $field['value'] ) . "\n"; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 35 | |
| 36 | echo esc_html__( 'We will be in touch soon!', 'tier-pricing-table' ) . "\n\n"; |
| 37 | |
| 38 | echo "\n----------------------------------------\n\n"; |
| 39 | |
| 40 | echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); |
| 41 |