Guest User

Untitled

a guest
Nov 18th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. if ( ! defined( 'ABSPATH' ) ) {
  2. exit;
  3. }
  4.  
  5. echo "= " . $email_heading . " =nn";
  6.  
  7. echo $order->get_formatted_billing_full_name() . "n";
  8. if ( $order->get_billing_address_2() ) {
  9. echo $order->get_billing_address_1() . " " . $order->get_billing_address_2() . "n";
  10. } else {
  11. echo $order->get_billing_address_1() . "n";
  12. }
  13. echo $order->get_billing_phone() . "n";
  14. echo "---n";
  15. if ( $order->get_customer_note() ) {
  16. echo "Комментарийt " . wptexturize( $order->get_customer_note() ) . "n";
  17.  
  18. echo "---n";
  19.  
  20. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
  21.  
  22. echo "---n";
  23.  
  24.  
  25. foreach ( $totals as $total ) {
  26. if ($total['label'] == "Payment method") echo "Форма оплаты: " . "t " . $total['value'] . "n";
  27. }
  28. foreach ( $totals as $total ) {
  29. if ($total['label'] == "Subtotal") echo "Сумма заказа: " . "t " . $total['value'] . "n";
  30. }
  31. foreach ( $totals as $total ) {
  32. if ($total['label'] == "Shipping") echo "Доставка: " . "t " . $total['value'] . "n";
  33. }
  34. foreach ( $totals as $total ) {
  35. if ($total['label'] == "Total") echo "Итого: " . "t " . $total['value'] . "n";
  36. }
  37.  
  38. echo "---n";
  39.  
  40. echo "Site.by";
  41.  
  42. echo $order->get_billing_address_1() . " " . $order->get_billing_address_2 "n";
  43.  
  44. echo $order->get_billing_phone(); . "n";
Add Comment
Please, Sign In to add comment