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 / NonLoggedInUsers / Wholesale / views / emails / customer-application-received.php

customer-application-received.php in Tiered Pricing Table for WooCommerce 8.0.2, at src/Addons/NonLoggedInUsers/Wholesale/views/emails/customer-application-received.php

45 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Customer e-mail: the wholesale application is waiting for approval.
4 *
5 * Override it by copying this file to yourtheme/woocommerce/emails/customer-application-received.php.
6 *
7 * @var \TierPricingTable\Addons\NonLoggedInUsers\Wholesale\Models\WholesaleApplication $application
8 * @var string $emailHeading
9 * @var bool $sent_to_admin
10 * @var bool $plain_text
11 * @var WC_Email $email
12 */
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit;
16 }
17
18 do_action( 'woocommerce_email_header', $emailHeading, $email ); ?>
19
20 <p><?php
21 /* translators: %s: first name */
22 echo esc_html( sprintf( __( 'Hi %s,', 'tier-pricing-table' ), $application->getField( 'first_name' ) ?: $application->getName() ) ); ?></p>
23 <p><?php esc_html_e( 'Thank you for applying for a wholesale account. We review every application and will e-mail you as soon as yours is approved. Here is what you sent us:', 'tier-pricing-table' ); ?></p>
24
25 <h2><?php esc_html_e( 'Application details', 'tier-pricing-table' ); ?></h2>
26
27 <table class="td" cellspacing="0" cellpadding="6" style="width: 100%%; margin-bottom: 40px; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
28 <tbody>
29 <?php foreach ( $application->getDetails() as $label => $value ) : ?>
30 <tr>
31 <th class="td" scope="row" style="text-align:left; width: 35%%;"><?php echo esc_html( $label ); ?></th>
32 <td class="td" style="text-align:left;"><?php echo nl2br( esc_html( $value ) ); ?></td>
33 </tr>
34 <?php endforeach; ?>
35 </tbody>
36 </table>
37
38
39 <?php
40 if ( $additionalContent = $email->get_additional_content() ) {
41 echo wp_kses_post( wpautop( wptexturize( $additionalContent ) ) );
42 }
43
44 do_action( 'woocommerce_email_footer', $email );
45