PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / src / Addons / RequestAQuote / views / emails / plain / admin-quote-request.php

admin-quote-request.php in Tiered Pricing Table for WooCommerce 8.0.2, at src/Addons/RequestAQuote/views/emails/plain/admin-quote-request.php

45 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin Quote Request Email (Plain text)
4 *
5 * This template can be overridden by copying it to yourtheme/tiered-pricing-table/emails/plain/admin-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__( 'A new quote request has been submitted on your store.', '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'] ) . ': ' . esc_html( wp_strip_all_tags( $field['value'] ) ) . "\n";
31 }
32 }
33
34 echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
35
36 if ( $quotePost instanceof \TierPricingTable\Addons\RequestAQuote\Models\QuoteRequest ) {
37 echo esc_html__( 'View Request in Dashboard', 'tier-pricing-table' ) . ': ' . esc_url( admin_url( 'post.php?post=' . $quotePost->getId() . '&action=edit' ) ) . "\n\n";
38 } else {
39 echo esc_html__( 'View Request in Dashboard', 'tier-pricing-table' ) . ": #\n\n";
40 }
41
42 echo "\n----------------------------------------\n\n";
43
44 echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
45