Guest User

Untitled

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