Initial commit.
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* Customer IPP receipt email
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-ipp-receipt.php.
|
||||
*
|
||||
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
||||
* (the theme developer) will need to copy the new files to your theme to
|
||||
* maintain compatibility. We try to do this as little as possible, but it does
|
||||
* happen. When this occurs the version of the template file will be bumped and
|
||||
* the readme will list any important changes.
|
||||
*
|
||||
* @see https://woocommerce.com/document/template-structure/
|
||||
* @package WooCommerce\Payments\Templates\Emails
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* Output the email header.
|
||||
*
|
||||
* @hooked WC_Emails::email_header() Output the email header
|
||||
* @since 4.0.0
|
||||
*/
|
||||
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
|
||||
|
||||
<?php /* translators: %s: Customer first name */ ?>
|
||||
<p><?php printf( esc_html__( 'Hi %s,', 'woocommerce-payments' ), esc_html( $order->get_billing_first_name() ) ); ?></p>
|
||||
<?php /* translators: %s: Order number */ ?>
|
||||
<p><?php printf( esc_html__( 'This is the receipt for your order #%s:', 'woocommerce-payments' ), esc_html( $order->get_order_number() ) ); ?></p>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Output the store details section of the IPP receipt email.
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
do_action( 'woocommerce_payments_email_ipp_receipt_store_details', $merchant_settings, $plain_text );
|
||||
|
||||
/**
|
||||
* Output the order details section of the email.
|
||||
*
|
||||
* @hooked WC_Emails::order_details() Shows the order details table.
|
||||
* @hooked WC_Structured_Data::generate_order_data() Generates structured data.
|
||||
* @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
|
||||
* @since 2.5.0
|
||||
*/
|
||||
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
|
||||
|
||||
/**
|
||||
* Output the compliance details section of the IPP receipt email.
|
||||
*
|
||||
* @hooked WC_Payments_Email_IPP_Receipt::compliance_details() Output receipt compliance details
|
||||
* @since 4.0.0
|
||||
*/
|
||||
do_action( 'woocommerce_payments_email_ipp_receipt_compliance_details', $charge, $plain_text );
|
||||
|
||||
/**
|
||||
* Output the order meta data section of the email.
|
||||
*
|
||||
* @hooked WC_Emails::order_meta() Shows order meta data.
|
||||
* @since 4.0.0
|
||||
*/
|
||||
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
|
||||
|
||||
/**
|
||||
* Show user-defined additional content - this is set in each email's settings.
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
if ( $additional_content ) {
|
||||
echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Output the email footer.
|
||||
*
|
||||
* @hooked WC_Emails::email_footer() Output the email footer
|
||||
* @since 4.0.0
|
||||
*/
|
||||
do_action( 'woocommerce_email_footer', $email );
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* IPP Receipt Compliance Details
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/emails/email-ipp-receipt-compliance-details.php.
|
||||
*
|
||||
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
||||
* (the theme developer) will need to copy the new files to your theme to
|
||||
* maintain compatibility. We try to do this as little as possible, but it does
|
||||
* happen. When this occurs the version of the template file will be bumped and
|
||||
* the readme will list any important changes.
|
||||
*
|
||||
* @see https://woocommerce.com/document/template-structure/
|
||||
* @package WooCommerce\Payments\Templates\Emails
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
?>
|
||||
|
||||
<div style="margin-bottom: 40px;">
|
||||
<table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="td" scope="row" colspan="2">
|
||||
<?php esc_html_e( 'Payment Method', 'woocommerce-payments' ); ?>
|
||||
</th>
|
||||
<td class="td">
|
||||
<div><?php echo esc_html( sprintf( '%s - %s', ucfirst( $payment_method_details['brand'] ), $payment_method_details['last4'] ) ); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="td" scope="row" colspan="2">
|
||||
<?php esc_html_e( 'Application Name', 'woocommerce-payments' ); ?>
|
||||
</th>
|
||||
<td class="td">
|
||||
<div id="application-preferred-name"><?php echo esc_html( ucfirst( $receipt['application_preferred_name'] ) ); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="td" scope="row" colspan="2">
|
||||
<?php esc_html_e( 'AID', 'woocommerce-payments' ); ?>
|
||||
</th>
|
||||
<td class="td">
|
||||
<div id="dedicated-file-name"><?php echo esc_html( ucfirst( $receipt['dedicated_file_name'] ) ); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="td" scope="row" colspan="2">
|
||||
<?php esc_html_e( 'Account Type', 'woocommerce-payments' ); ?>
|
||||
</th>
|
||||
<td class="td">
|
||||
<div id="account-type"><?php echo esc_html( ucfirst( $receipt['account_type'] ) ); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/emails/email-ipp-receipt-store-details.php
|
||||
*
|
||||
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
||||
* (the theme developer) will need to copy the new files to your theme to
|
||||
* maintain compatibility. We try to do this as little as possible, but it does
|
||||
* happen. When this occurs the version of the template file will be bumped and
|
||||
* the readme will list any important changes.
|
||||
*
|
||||
* @see https://woocommerce.com/document/template-structure/
|
||||
* @package WooCommerce\Payments\Templates\Emails
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
?>
|
||||
|
||||
<div style="margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5; padding-top: 24px;">
|
||||
<h2 style="display: block; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: left;" class="woocommerce-email-store-details__heading">
|
||||
<?php esc_html_e( 'Store Details', 'woocommerce-payments' ); ?>
|
||||
</h2>
|
||||
<table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="td" scope="row" style="text-align: left; width: 30%;">
|
||||
<?php esc_html_e( 'Store Name:', 'woocommerce-payments' ); ?>
|
||||
</th>
|
||||
<td class="td" style="text-align: left;">
|
||||
<?php echo esc_html( $business_name ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ( ! empty( $support_address ) && is_array( $support_address ) ) : ?>
|
||||
<tr>
|
||||
<th class="td" scope="row" style="text-align: left;">
|
||||
<?php esc_html_e( 'Address:', 'woocommerce-payments' ); ?>
|
||||
</th>
|
||||
<td class="td" style="text-align: left;">
|
||||
<?php
|
||||
$address_parts = [];
|
||||
if ( ! empty( $support_address['line1'] ) ) {
|
||||
$address_parts[] = esc_html( $support_address['line1'] );
|
||||
}
|
||||
if ( ! empty( $support_address['line2'] ) ) {
|
||||
$address_parts[] = esc_html( $support_address['line2'] );
|
||||
}
|
||||
if ( ! empty( $support_address['city'] ) || ! empty( $support_address['state'] ) || ! empty( $support_address['postal_code'] ) ) {
|
||||
$city_state_zip = [];
|
||||
if ( ! empty( $support_address['city'] ) ) {
|
||||
$city_state_zip[] = esc_html( $support_address['city'] );
|
||||
}
|
||||
if ( ! empty( $support_address['state'] ) ) {
|
||||
$city_state_zip[] = esc_html( $support_address['state'] );
|
||||
}
|
||||
if ( ! empty( $support_address['postal_code'] ) ) {
|
||||
$city_state_zip[] = esc_html( $support_address['postal_code'] );
|
||||
}
|
||||
if ( ! empty( $city_state_zip ) ) {
|
||||
$address_parts[] = implode( ', ', $city_state_zip );
|
||||
}
|
||||
}
|
||||
if ( ! empty( $support_address['country'] ) ) {
|
||||
$address_parts[] = esc_html( $support_address['country'] );
|
||||
}
|
||||
echo wp_kses_post( implode( '<br>', $address_parts ) );
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $support_phone ) || ! empty( $support_email ) ) : ?>
|
||||
<tr>
|
||||
<th class="td" scope="row" style="text-align: left;">
|
||||
<?php esc_html_e( 'Contact:', 'woocommerce-payments' ); ?>
|
||||
</th>
|
||||
<td class="td" style="text-align: left;">
|
||||
<?php
|
||||
$contact_parts = [];
|
||||
if ( ! empty( $support_phone ) ) {
|
||||
$contact_parts[] = esc_html( $support_phone );
|
||||
}
|
||||
if ( ! empty( $support_email ) ) {
|
||||
$contact_parts[] = esc_html( $support_email );
|
||||
}
|
||||
echo wp_kses_post( implode( '<br>', $contact_parts ) );
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<th class="td" scope="row" style="text-align: left;">
|
||||
<?php esc_html_e( 'Date:', 'woocommerce-payments' ); ?>
|
||||
</th>
|
||||
<td class="td" style="text-align: left;">
|
||||
<?php echo esc_html( gmdate( 'Y-m-d H:iA' ) ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/customer-ipp-receipt.php.
|
||||
*
|
||||
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
||||
* (the theme developer) will need to copy the new files to your theme to
|
||||
* maintain compatibility. We try to do this as little as possible, but it does
|
||||
* happen. When this occurs the version of the template file will be bumped and
|
||||
* the readme will list any important changes.
|
||||
*
|
||||
* @see https://woocommerce.com/document/template-structure/
|
||||
* @package WooCommerce\Payments\Templates\Emails\Plain
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
|
||||
echo esc_html( wp_strip_all_tags( $email_heading ) );
|
||||
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
|
||||
|
||||
/* translators: %s: Customer first name */
|
||||
echo sprintf( esc_html__( 'Hi %s,', 'woocommerce-payments' ), esc_html( $order->get_billing_first_name() ) ) . "\n\n";
|
||||
/* translators: %s: Order number */
|
||||
echo sprintf( esc_html__( 'This is the receipt for your order #%s:', 'woocommerce-payments' ), esc_html( $order->get_order_number() ) ) . "\n\n";
|
||||
|
||||
/**
|
||||
* Outputs the store details section of the IPP receipt email.
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
do_action( 'woocommerce_payments_email_ipp_receipt_store_details', $merchant_settings, $plain_text );
|
||||
|
||||
echo "\n----------------------------------------\n\n";
|
||||
|
||||
/**
|
||||
* Outputs the order details section of the email.
|
||||
*
|
||||
* @hooked WC_Emails::order_details() Shows the order details table.
|
||||
* @hooked WC_Structured_Data::generate_order_data() Generates structured data.
|
||||
* @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
|
||||
* @since 2.5.0
|
||||
*/
|
||||
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
|
||||
|
||||
echo "\n----------------------------------------\n\n";
|
||||
|
||||
/**
|
||||
* Outputs the compliance details section of the IPP receipt email.
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
do_action( 'woocommerce_payments_email_ipp_receipt_compliance_details', $charge, $plain_text );
|
||||
|
||||
echo "\n\n----------------------------------------\n\n";
|
||||
|
||||
/**
|
||||
* Outputs the order meta data section of the email.
|
||||
*
|
||||
* @hooked WC_Emails::order_meta() Shows order meta data.
|
||||
* @since 4.0.0
|
||||
*/
|
||||
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
|
||||
|
||||
/**
|
||||
* Show user-defined additional content - this is set in each email's settings.
|
||||
*/
|
||||
if ( $additional_content ) {
|
||||
echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) );
|
||||
echo "\n\n----------------------------------------\n\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Outputs the footer text of the email.
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/email-ipp-receipt-compliance-details.php
|
||||
*
|
||||
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
||||
* (the theme developer) will need to copy the new files to your theme to
|
||||
* maintain compatibility. We try to do this as little as possible, but it does
|
||||
* happen. When this occurs the version of the template file will be bumped and
|
||||
* the readme will list any important changes.
|
||||
*
|
||||
* @see https://woocommerce.com/document/template-structure/
|
||||
* @package WooCommerce\Payments\Templates\Emails\Plain
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
echo esc_html( sprintf( "%s:\t%s", __( 'Payment Method', 'woocommerce-payments' ), sprintf( '%s - %s', ucfirst( $payment_method_details['brand'] ), $payment_method_details['last4'] ) ) ) . "\n";
|
||||
|
||||
echo esc_html( sprintf( "%s:\t%s", __( 'Application Name', 'woocommerce-payments' ), ucfirst( $receipt['application_preferred_name'] ) ) ) . "\n";
|
||||
|
||||
echo esc_html( sprintf( "%s:\t%s", __( 'AID', 'woocommerce-payments' ), ucfirst( $receipt['dedicated_file_name'] ) ) ) . "\n";
|
||||
|
||||
echo esc_html( sprintf( "%s:\t%s", __( 'Account Type', 'woocommerce-payments' ), ucfirst( $receipt['account_type'] ) ) ) . "\n";
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/email-ipp-receipt-store-details.php
|
||||
*
|
||||
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
||||
* (the theme developer) will need to copy the new files to your theme to
|
||||
* maintain compatibility. We try to do this as little as possible, but it does
|
||||
* happen. When this occurs the version of the template file will be bumped and
|
||||
* the readme will list any important changes.
|
||||
*
|
||||
* @see https://woocommerce.com/document/template-structure/
|
||||
* @package WooCommerce\Payments\Templates\Emails\Plain
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
echo "==========\n\n";
|
||||
|
||||
echo esc_html( $business_name ) . "\n\n";
|
||||
|
||||
echo "==========\n\n";
|
||||
|
||||
if ( ! empty( $support_address ) ) {
|
||||
echo esc_html( $support_address['line1'] ) . "\n";
|
||||
echo esc_html( $support_address['line2'] ) . "\n";
|
||||
echo esc_html( implode( ' ', [ $support_address['city'], $support_address['state'], $support_address['postal_code'], $support_address['country'] ] ) ) . "\n";
|
||||
echo esc_html( implode( ' ', [ $support_phone, $support_email ] ) ) . "\n";
|
||||
echo esc_html( gmdate( 'Y-m-d H:iA' ) ) . "\n";
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* WooPayments wrapper markup rendered on plugins page.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/plugins-page/plugins-page-wrapper.php
|
||||
*
|
||||
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
||||
* (the theme developer) will need to copy the new files to your theme to
|
||||
* maintain compatibility. We try to do this as little as possible, but it does
|
||||
* happen. When this occurs the version of the template file will be bumped and
|
||||
* the readme will list any important changes.
|
||||
*
|
||||
* @see https://woocommerce.com/document/template-structure/
|
||||
* @package WooCommerce\Payments\Templates\PluginsPage
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
?>
|
||||
<div id="woopayments-plugins-page-app">
|
||||
<!--
|
||||
The content is rendered from React.
|
||||
-->
|
||||
</div>
|
||||
Reference in New Issue
Block a user