PluginProbe
Tiered Pricing Table for WooCommerce / 7.1.7
Tiered Pricing Table for WooCommerce v7.1.7
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 / admin-quote-request.php

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

67 lines 2.2 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
4 *
5 * This template can be overridden by copying it to yourtheme/tiered-pricing-table/emails/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 /*
20 * @hooked WC_Emails::email_header() Output the email header
21 */
22 do_action( 'woocommerce_email_header', $emailHeading, $email ); ?>
23
24 <p><?php esc_html_e( 'A new quote request has been submitted on your store.', 'tier-pricing-table' ); ?></p>
25
26 <h2><?php esc_html_e( 'Quote Request Details', 'tier-pricing-table' ); ?></h2>
27
28 <div style="margin-bottom: 40px;">
29 <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
30 <tbody>
31 <tr>
32 <th class="td" scope="row" style="text-align:left;"><?php esc_html_e( 'Product', 'tier-pricing-table' ); ?></th>
33 <td class="td" style="text-align:left;"><?php echo $product ? wp_kses_post( $product->get_name() ) : esc_html__( 'Unknown', 'tier-pricing-table' ); ?></td>
34 </tr>
35 <?php
36 $fields = $email->get_submitted_fields();
37 if ( ! empty( $fields ) ) :
38 foreach ( $fields as $field ) : ?>
39 <tr>
40 <th class="td" scope="row" style="text-align:left;"><?php echo esc_html( $field['label'] ); ?></th>
41 <td class="td" style="text-align:left;"><?php echo wp_kses_post( nl2br( $field['value'] ) ); ?></td>
42 </tr>
43 <?php endforeach;
44 endif;
45 ?>
46 </tbody>
47 </table>
48 </div>
49
50 <p>
51 <?php if ( $quotePost instanceof \TierPricingTable\Addons\RequestAQuote\Models\QuoteRequest ) : ?>
52 <a href="<?php echo esc_url( admin_url( 'post.php?post=' . $quotePost->getId() . '&action=edit' ) ); ?>">
53 <?php esc_html_e( 'View Request in Dashboard', 'tier-pricing-table' ); ?>
54 </a>
55 <?php else : ?>
56 <a href="#">
57 <?php esc_html_e( 'View Request in Dashboard', 'tier-pricing-table' ); ?>
58 </a>
59 <?php endif; ?>
60 </p>
61
62 <?php
63 /*
64 * @hooked WC_Emails::email_footer() Output the email footer
65 */
66 do_action( 'woocommerce_email_footer', $email );
67