| Server IP : 38.190.208.107 / Your IP : 216.73.217.1 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.9/wp-content/themes/woodmart/woocommerce/emails/plain/ |
Upload File : |
<?php
/**
* Price tracker email template.
*
* @package woodmart
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
echo esc_html( wp_strip_all_tags( $email_heading ) ) . "\n\n";
echo esc_html(
sprintf(
// translators: %s User name.
__(
'Hi, %s!',
'woodmart'
),
$email->user_name
)
) . "\n";
echo esc_html__( 'Good news!', 'woodmart' );
echo esc_html__( 'The price of some of the products you were watching has dropped.', 'woodmart' );
echo esc_html__( 'Check them out below:', 'woodmart' );
echo "\n\n";
if ( ! empty( $email->object ) ) {
echo "------------------------------------------\n\n";
foreach ( $email->object as $subscription ) {
if ( ! apply_filters( 'woocommerce_is_email_preview', false ) ) {
$product = $subscription->variation_id ? wc_get_product( $subscription->variation_id ) : wc_get_product( $subscription->product_id );
} elseif ( isset( $email->dummy_product ) ) {
$product = $email->dummy_product;
}
echo esc_html(
wp_strip_all_tags(
sprintf(
'%1$s (%2$s -> %3$s) [%4$s]',
$product->get_name(),
wc_price( $subscription->product_price ),
wc_price( $subscription->product_new_price ),
esc_url( add_query_arg( 'add-to-cart', $product->get_id(), wc_get_cart_url() ) )
)
)
) . "\n";
}
echo "\n------------------------------------------\n\n";
}
echo esc_html__( "Best regards,\n", 'woodmart' );
echo esc_html( $email->get_blogname() );
echo "\n----------------------------------------\n\n";
echo esc_html( __( 'If you don\'t want to receive any further notification, please follow this link', 'woodmart' ) . ' ' . $unsubscribe_link );
echo "\n----------------------------------------\n\n";
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );