Posted on

Debug 1363 – wc_order_update

object(stdClass)#2147 (42) {
  ["id"]=>
  int(1363)
  ["parent_id"]=>
  int(0)
  ["number"]=>
  string(4) "1363"
  ["order_key"]=>
  string(22) "wc_order_j3K3FyeIcqhnZ"
  ["created_via"]=>
  string(8) "checkout"
  ["version"]=>
  string(5) "3.7.0"
  ["status"]=>
  string(9) "completed"
  ["currency"]=>
  string(3) "MNT"
  ["date_created"]=>
  string(19) "2020-01-21T18:26:27"
  ["date_created_gmt"]=>
  string(19) "2020-01-21T10:26:27"
  ["date_modified"]=>
  string(19) "2020-01-27T10:02:10"
  ["date_modified_gmt"]=>
  string(19) "2020-01-27T02:02:10"
  ["discount_total"]=>
  string(1) "0"
  ["discount_tax"]=>
  string(1) "0"
  ["shipping_total"]=>
  string(1) "0"
  ["shipping_tax"]=>
  string(1) "0"
  ["cart_tax"]=>
  string(5) "32000"
  ["total"]=>
  string(6) "352000"
  ["total_tax"]=>
  string(5) "32000"
  ["prices_include_tax"]=>
  bool(false)
  ["customer_id"]=>
  int(40)
  ["customer_ip_address"]=>
  string(13) "202.21.118.90"
  ["customer_user_agent"]=>
  string(77) "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
  ["customer_note"]=>
  string(0) ""
  ["billing"]=>
  object(stdClass)#2148 (11) {
    ["first_name"]=>
    string(12) "Tserenjargal"
    ["last_name"]=>
    string(0) ""
    ["company"]=>
    string(7) "RTT LLC"
    ["address_1"]=>
    string(29) "Ikh Toiruu 63, TIP TOP CENTER"
    ["address_2"]=>
    string(0) ""
    ["city"]=>
    string(0) ""
    ["state"]=>
    string(0) ""
    ["postcode"]=>
    string(0) ""
    ["country"]=>
    string(0) ""
    ["email"]=>
    string(11) "info@rtt.mn"
    ["phone"]=>
    string(8) "99995704"
  }
  ["shipping"]=>
  object(stdClass)#2149 (9) {
    ["first_name"]=>
    string(12) "Tserenjargal"
    ["last_name"]=>
    string(0) ""
    ["company"]=>
    string(7) "RTT LLC"
    ["address_1"]=>
    string(29) "Ikh Toiruu 63, TIP TOP CENTER"
    ["address_2"]=>
    string(0) ""
    ["city"]=>
    string(0) ""
    ["state"]=>
    string(0) ""
    ["postcode"]=>
    string(0) ""
    ["country"]=>
    string(0) ""
  }
  ["payment_method"]=>
  string(4) "bacs"
  ["payment_method_title"]=>
  string(20) "Direct bank transfer"
  ["transaction_id"]=>
  string(0) ""
  ["date_paid"]=>
  string(19) "2020-01-27T10:02:10"
  ["date_paid_gmt"]=>
  string(19) "2020-01-27T02:02:10"
  ["date_completed"]=>
  string(19) "2020-01-27T10:02:10"
  ["date_completed_gmt"]=>
  string(19) "2020-01-27T02:02:10"
  ["cart_hash"]=>
  string(32) "574b585bd672aa049980386ed0af87cc"
  ["meta_data"]=>
  array(10) {
    [0]=>
    object(stdClass)#2150 (3) {
      ["id"]=>
      int(20476)
      ["key"]=>
      string(12) "_billing_vat"
      ["value"]=>
      string(7) "2714116"
    }
    [1]=>
    object(stdClass)#2151 (3) {
      ["id"]=>
      int(20477)
      ["key"]=>
      string(22) "_billing_contact_email"
      ["value"]=>
      string(0) ""
    }
    [2]=>
    object(stdClass)#2152 (3) {
      ["id"]=>
      int(20478)
      ["key"]=>
      string(13) "is_vat_exempt"
      ["value"]=>
      string(2) "no"
    }
    [3]=>
    object(stdClass)#2153 (3) {
      ["id"]=>
      int(20479)
      ["key"]=>
      string(21) "Delivery Contact Name"
      ["value"]=>
      string(14) "Tsegi Dalantai"
    }
    [4]=>
    object(stdClass)#2154 (3) {
      ["id"]=>
      int(20480)
      ["key"]=>
      string(22) "Delivery Contact Phone"
      ["value"]=>
      string(8) "99995704"
    }
    [5]=>
    object(stdClass)#2155 (3) {
      ["id"]=>
      int(20485)
      ["key"]=>
      string(23) "_wcpdf_invoice_settings"
      ["value"]=>
      object(stdClass)#2156 (20) {
        ["enabled"]=>
        string(1) "1"
        ["attach_to_email_ids"]=>
        object(stdClass)#2157 (5) {
          ["new_order"]=>
          string(1) "1"
          ["customer_on_hold_order"]=>
          string(1) "1"
          ["customer_processing_order"]=>
          string(1) "1"
          ["customer_completed_order"]=>
          string(1) "1"
          ["customer_invoice"]=>
          string(1) "1"
        }
        ["display_shipping_address"]=>
        string(1) "1"
        ["display_email"]=>
        string(1) "1"
        ["display_phone"]=>
        string(1) "1"
        ["display_date"]=>
        string(12) "invoice_date"
        ["display_number"]=>
        string(14) "invoice_number"
        ["number_format"]=>
        object(stdClass)#2158 (3) {
          ["prefix"]=>
          string(0) ""
          ["suffix"]=>
          string(0) ""
          ["padding"]=>
          string(0) ""
        }
        ["my_account_buttons"]=>
        string(9) "available"
        ["invoice_number_column"]=>
        string(1) "1"
        ["use_latest_settings"]=>
        string(1) "1"
        ["paper_size"]=>
        string(2) "a4"
        ["font_subsetting"]=>
        bool(false)
        ["header_logo"]=>
        string(2) "79"
        ["shop_name"]=>
        object(stdClass)#2159 (1) {
          ["default"]=>
          string(19) "Sonoforte Group LLC"
        }
        ["shop_address"]=>
        object(stdClass)#2160 (1) {
          ["default"]=>
          string(180) "3 Floor, MGG Properties Office Building, Seoul Street 7/1, 
Sukhbaatar District, Ulaanbaatar, Mongolia 
Phone: +976 77000121 
E-mail: info@sonoforte.com 
Web: www.sonoforte.com"
        }
        ["footer"]=>
        object(stdClass)#2161 (1) {
          ["default"]=>
          string(53) "Signature and Date:"
        }
        ["extra_1"]=>
        object(stdClass)#2162 (1) {
          ["default"]=>
          string(0) ""
        }
        ["extra_2"]=>
        object(stdClass)#2163 (1) {
          ["default"]=>
          string(0) ""
        }
        ["extra_3"]=>
        object(stdClass)#2164 (1) {
          ["default"]=>
          string(0) ""
        }
      }
    }
    [6]=>
    object(stdClass)#2165 (3) {
      ["id"]=>
      int(20486)
      ["key"]=>
      string(19) "_wcpdf_invoice_date"
      ["value"]=>
      string(10) "1579602388"
    }
    [7]=>
    object(stdClass)#2166 (3) {
      ["id"]=>
      int(20487)
      ["key"]=>
      string(29) "_wcpdf_invoice_date_formatted"
      ["value"]=>
      string(19) "2020-01-21 18:26:28"
    }
    [8]=>
    object(stdClass)#2167 (3) {
      ["id"]=>
      int(20488)
      ["key"]=>
      string(21) "_wcpdf_invoice_number"
      ["value"]=>
      string(2) "31"
    }
    [9]=>
    object(stdClass)#2168 (3) {
      ["id"]=>
      int(20489)
      ["key"]=>
      string(26) "_wcpdf_invoice_number_data"
      ["value"]=>
      object(stdClass)#2169 (7) {
        ["number"]=>
        int(31)
        ["formatted_number"]=>
        string(2) "31"
        ["prefix"]=>
        string(0) ""
        ["suffix"]=>
        string(0) ""
        ["document_type"]=>
        string(7) "invoice"
        ["order_id"]=>
        int(1363)
        ["padding"]=>
        string(0) ""
      }
    }
  }
  ["line_items"]=>
  array(2) {
    [0]=>
    object(stdClass)#2170 (14) {
      ["id"]=>
      int(89)
      ["name"]=>
      string(11) "Roundslings"
      ["product_id"]=>
      int(232)
      ["variation_id"]=>
      int(296)
      ["quantity"]=>
      int(1)
      ["tax_class"]=>
      string(0) ""
      ["subtotal"]=>
      string(6) "235000"
      ["subtotal_tax"]=>
      string(5) "23500"
      ["total"]=>
      string(6) "235000"
      ["total_tax"]=>
      string(5) "23500"
      ["taxes"]=>
      array(1) {
        [0]=>
        object(stdClass)#2171 (3) {
          ["id"]=>
          int(1)
          ["total"]=>
          string(5) "23500"
          ["subtotal"]=>
          string(5) "23500"
        }
      }
      ["meta_data"]=>
      array(4) {
        [0]=>
        object(stdClass)#2172 (3) {
          ["id"]=>
          int(933)
          ["key"]=>
          string(8) "pa_wll-t"
          ["value"]=>
          string(1) "6"
        }
        [1]=>
        object(stdClass)#2173 (3) {
          ["id"]=>
          int(934)
          ["key"]=>
          string(17) "pa_sling-length-m"
          ["value"]=>
          string(2) "10"
        }
        [2]=>
        object(stdClass)#2174 (3) {
          ["id"]=>
          int(935)
          ["key"]=>
          string(12) "pa_weight-kg"
          ["value"]=>
          string(3) "tbc"
        }
        [3]=>
        object(stdClass)#2175 (3) {
          ["id"]=>
          int(956)
          ["key"]=>
          string(14) "_reduced_stock"
          ["value"]=>
          string(1) "1"
        }
      }
      ["sku"]=>
      string(6) "RS-014"
      ["price"]=>
      int(235000)
    }
    [1]=>
    object(stdClass)#2176 (14) {
      ["id"]=>
      int(90)
      ["name"]=>
      string(11) "Roundslings"
      ["product_id"]=>
      int(232)
      ["variation_id"]=>
      int(293)
      ["quantity"]=>
      int(1)
      ["tax_class"]=>
      string(0) ""
      ["subtotal"]=>
      string(5) "85000"
      ["subtotal_tax"]=>
      string(4) "8500"
      ["total"]=>
      string(5) "85000"
      ["total_tax"]=>
      string(4) "8500"
      ["taxes"]=>
      array(1) {
        [0]=>
        object(stdClass)#2177 (3) {
          ["id"]=>
          int(1)
          ["total"]=>
          string(4) "8500"
          ["subtotal"]=>
          string(4) "8500"
        }
      }
      ["meta_data"]=>
      array(4) {
        [0]=>
        object(stdClass)#2178 (3) {
          ["id"]=>
          int(945)
          ["key"]=>
          string(8) "pa_wll-t"
          ["value"]=>
          string(1) "5"
        }
        [1]=>
        object(stdClass)#2179 (3) {
          ["id"]=>
          int(946)
          ["key"]=>
          string(17) "pa_sling-length-m"
          ["value"]=>
          string(1) "3"
        }
        [2]=>
        object(stdClass)#2180 (3) {
          ["id"]=>
          int(947)
          ["key"]=>
          string(12) "pa_weight-kg"
          ["value"]=>
          string(3) "tbc"
        }
        [3]=>
        object(stdClass)#2181 (3) {
          ["id"]=>
          int(957)
          ["key"]=>
          string(14) "_reduced_stock"
          ["value"]=>
          string(1) "1"
        }
      }
      ["sku"]=>
      string(6) "RS-011"
      ["price"]=>
      int(85000)
    }
  }
  ["tax_lines"]=>
  array(1) {
    [0]=>
    object(stdClass)#2182 (9) {
      ["id"]=>
      int(91)
      ["rate_code"]=>
      string(5) "TAX-1"
      ["rate_id"]=>
      int(1)
      ["label"]=>
      string(3) "Tax"
      ["compound"]=>
      bool(false)
      ["tax_total"]=>
      string(5) "32000"
      ["shipping_tax_total"]=>
      string(1) "0"
      ["rate_percent"]=>
      int(10)
      ["meta_data"]=>
      array(0) {
      }
    }
  }
  ["shipping_lines"]=>
  array(0) {
  }
  ["fee_lines"]=>
  array(0) {
  }
  ["coupon_lines"]=>
  array(0) {
  }
  ["refunds"]=>
  array(0) {
  }
  ["_links"]=>
  object(stdClass)#2184 (3) {
    ["self"]=>
    array(1) {
      [0]=>
      object(stdClass)#2183 (1) {
        ["href"]=>
        string(47) "https://sonoforte.com/wp-json/wc/v3/orders/1363"
      }
    }
    ["collection"]=>
    array(1) {
      [0]=>
      object(stdClass)#2185 (1) {
        ["href"]=>
        string(42) "https://sonoforte.com/wp-json/wc/v3/orders"
      }
    }
    ["customer"]=>
    array(1) {
      [0]=>
      object(stdClass)#2186 (1) {
        ["href"]=>
        string(48) "https://sonoforte.com/wp-json/wc/v3/customers/40"
      }
    }
  }
}