Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?php
  2. /**
  3. * Customer note email
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-note.php.
  6. *
  7. * HOWEVER, on occasion WooCommerce will need to update template files and you
  8. * (the theme developer) will need to copy the new files to your theme to
  9. * maintain compatibility. We try to do this as little as possible, but it does
  10. * happen. When this occurs the version of the template file will be bumped and
  11. * the readme will list any important changes.
  12. *
  13. * @see https://docs.woocommerce.com/document/template-structure/
  14. * @package WooCommerce/Templates/Emails
  15. * @version 3.7.0
  16. */
  17.  
  18. if ( ! defined( 'ABSPATH' ) ) {
  19. exit;
  20. }
  21.  
  22. /*
  23. * @hooked WC_Emails::email_header() Output the email header
  24. */
  25. do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
  26.  
  27. <?php /* translators: %s: Customer first name */ ?>
  28. <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_formatted_billing_full_name() ) ); ?></p>
  29. <p><?php esc_html_e( 'Вашата поръчка №X от дата X час X беше обработена. Може да проследите движението й като кликнете върху номера на товарителницата:', 'woocommerce' ); ?></p>
  30.  
  31. <blockquote><?php echo wpautop( wptexturize( make_clickable( $customer_note ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></blockquote>
  32.  
  33. <p><?php esc_html_e( 'Последвайте ни и в социалните мрежи, за да знаете винаги всичко ново около нас и последните ни промоции:', 'woocommerce' ); ?></p>
  34.  
  35. <p><?php esc_html_e( 'Бъдете здрави,
  36. Екипът на X', 'woocommerce' ); ?></p>
  37.  
  38. <?php
  39.  
  40. /**
  41. * Show user-defined additional content - this is set in each email's settings.
  42. */
  43. if ( $additional_content ) {
  44. echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
  45. }
  46.  
  47. /*
  48. * @hooked WC_Emails::email_footer() Output the email footer
  49. */
  50. do_action( 'woocommerce_email_footer', $email );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement