Posted on

Debug 1510 – wc_order_update

object(stdClass)#2196 (42) {
  ["id"]=>
  int(1510)
  ["parent_id"]=>
  int(0)
  ["number"]=>
  string(4) "1510"
  ["order_key"]=>
  string(22) "wc_order_h4RrKyyJNEUvz"
  ["created_via"]=>
  string(8) "checkout"
  ["version"]=>
  string(5) "3.9.1"
  ["status"]=>
  string(9) "completed"
  ["currency"]=>
  string(3) "MNT"
  ["date_created"]=>
  string(19) "2020-03-02T15:06:45"
  ["date_created_gmt"]=>
  string(19) "2020-03-02T07:06:45"
  ["date_modified"]=>
  string(19) "2020-03-03T17:08:41"
  ["date_modified_gmt"]=>
  string(19) "2020-03-03T09:08:41"
  ["discount_total"]=>
  string(1) "0"
  ["discount_tax"]=>
  string(1) "0"
  ["shipping_total"]=>
  string(1) "0"
  ["shipping_tax"]=>
  string(1) "0"
  ["cart_tax"]=>
  string(6) "424000"
  ["total"]=>
  string(7) "4664000"
  ["total_tax"]=>
  string(6) "424000"
  ["prices_include_tax"]=>
  bool(false)
  ["customer_id"]=>
  int(41)
  ["customer_ip_address"]=>
  string(15) "165.225.110.135"
  ["customer_user_agent"]=>
  string(115) "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
  ["customer_note"]=>
  string(0) ""
  ["billing"]=>
  object(stdClass)#2197 (11) {
    ["first_name"]=>
    string(9) "Batdelger"
    ["last_name"]=>
    string(0) ""
    ["company"]=>
    string(16) "Sandvik Mongolia"
    ["address_1"]=>
    string(66) "3th khoroo, Chinggis avenue, 17032, Khan-uul district, Ulaanbaatar"
    ["address_2"]=>
    string(0) ""
    ["city"]=>
    string(0) ""
    ["state"]=>
    string(0) ""
    ["postcode"]=>
    string(0) ""
    ["country"]=>
    string(0) ""
    ["email"]=>
    string(31) "dashdeleg.batdelger@sandvik.com"
    ["phone"]=>
    string(8) "94001954"
  }
  ["shipping"]=>
  object(stdClass)#2198 (9) {
    ["first_name"]=>
    string(9) "Batdelger"
    ["last_name"]=>
    string(0) ""
    ["company"]=>
    string(16) "Sandvik Mongolia"
    ["address_1"]=>
    string(66) "3th khoroo, Chinggis avenue, 17032, Khan-uul district, Ulaanbaatar"
    ["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-03-03T17:08:41"
  ["date_paid_gmt"]=>
  string(19) "2020-03-03T09:08:41"
  ["date_completed"]=>
  string(19) "2020-03-03T17:08:41"
  ["date_completed_gmt"]=>
  string(19) "2020-03-03T09:08:41"
  ["cart_hash"]=>
  string(32) "9b9179ff81035887b9cb4c02f7842a3a"
  ["meta_data"]=>
  array(12) {
    [0]=>
    object(stdClass)#2199 (3) {
      ["id"]=>
      int(22005)
      ["key"]=>
      string(12) "_billing_vat"
      ["value"]=>
      string(7) "5142474"
    }
    [1]=>
    object(stdClass)#2200 (3) {
      ["id"]=>
      int(22006)
      ["key"]=>
      string(22) "_billing_contact_email"
      ["value"]=>
      string(31) "batdelger.dashdeleg@sandvik.com"
    }
    [2]=>
    object(stdClass)#2201 (3) {
      ["id"]=>
      int(22007)
      ["key"]=>
      string(13) "is_vat_exempt"
      ["value"]=>
      string(2) "no"
    }
    [3]=>
    object(stdClass)#2202 (3) {
      ["id"]=>
      int(22008)
      ["key"]=>
      string(21) "Delivery Contact Name"
      ["value"]=>
      string(9) "Batdelger"
    }
    [4]=>
    object(stdClass)#2203 (3) {
      ["id"]=>
      int(22009)
      ["key"]=>
      string(22) "Delivery Contact Phone"
      ["value"]=>
      string(8) "94001954"
    }
    [5]=>
    object(stdClass)#2204 (3) {
      ["id"]=>
      int(22014)
      ["key"]=>
      string(23) "_wcpdf_invoice_settings"
      ["value"]=>
      object(stdClass)#2205 (20) {
        ["enabled"]=>
        string(1) "1"
        ["attach_to_email_ids"]=>
        object(stdClass)#2206 (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)#2207 (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)#2208 (1) {
          ["default"]=>
          string(19) "Sonoforte Group LLC"
        }
        ["shop_address"]=>
        object(stdClass)#2209 (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)#2210 (1) {
          ["default"]=>
          string(53) "Signature and Date:"
        }
        ["extra_1"]=>
        object(stdClass)#2211 (1) {
          ["default"]=>
          string(0) ""
        }
        ["extra_2"]=>
        object(stdClass)#2212 (1) {
          ["default"]=>
          string(0) ""
        }
        ["extra_3"]=>
        object(stdClass)#2213 (1) {
          ["default"]=>
          string(0) ""
        }
      }
    }
    [6]=>
    object(stdClass)#2214 (3) {
      ["id"]=>
      int(22015)
      ["key"]=>
      string(19) "_wcpdf_invoice_date"
      ["value"]=>
      string(10) "1583132805"
    }
    [7]=>
    object(stdClass)#2215 (3) {
      ["id"]=>
      int(22016)
      ["key"]=>
      string(29) "_wcpdf_invoice_date_formatted"
      ["value"]=>
      string(19) "2020-03-02 15:06:45"
    }
    [8]=>
    object(stdClass)#2216 (3) {
      ["id"]=>
      int(22017)
      ["key"]=>
      string(21) "_wcpdf_invoice_number"
      ["value"]=>
      string(2) "33"
    }
    [9]=>
    object(stdClass)#2217 (3) {
      ["id"]=>
      int(22018)
      ["key"]=>
      string(26) "_wcpdf_invoice_number_data"
      ["value"]=>
      object(stdClass)#2218 (7) {
        ["number"]=>
        int(33)
        ["formatted_number"]=>
        string(2) "33"
        ["prefix"]=>
        string(0) ""
        ["suffix"]=>
        string(0) ""
        ["document_type"]=>
        string(7) "invoice"
        ["order_id"]=>
        int(1510)
        ["padding"]=>
        string(0) ""
      }
    }
    [10]=>
    object(stdClass)#2219 (3) {
      ["id"]=>
      int(22106)
      ["key"]=>
      string(24) "_wcpdf_packing_slip_date"
      ["value"]=>
      string(10) "1583226540"
    }
    [11]=>
    object(stdClass)#2220 (3) {
      ["id"]=>
      int(22107)
      ["key"]=>
      string(34) "_wcpdf_packing_slip_date_formatted"
      ["value"]=>
      string(19) "2020-03-03 17:09:00"
    }
  }
  ["line_items"]=>
  array(2) {
    [0]=>
    object(stdClass)#2221 (14) {
      ["id"]=>
      int(97)
      ["name"]=>
      string(29) "Bow Shackles with Safety Bolt"
      ["product_id"]=>
      int(155)
      ["variation_id"]=>
      int(169)
      ["quantity"]=>
      int(4)
      ["tax_class"]=>
      string(0) ""
      ["subtotal"]=>
      string(7) "1200000"
      ["subtotal_tax"]=>
      string(6) "120000"
      ["total"]=>
      string(7) "1200000"
      ["total_tax"]=>
      string(6) "120000"
      ["taxes"]=>
      array(1) {
        [0]=>
        object(stdClass)#2222 (3) {
          ["id"]=>
          int(1)
          ["total"]=>
          string(6) "120000"
          ["subtotal"]=>
          string(6) "120000"
        }
      }
      ["meta_data"]=>
      array(5) {
        [0]=>
        object(stdClass)#2223 (3) {
          ["id"]=>
          int(1025)
          ["key"]=>
          string(12) "pa_size-inch"
          ["value"]=>
          string(5) "1-1-2"
        }
        [1]=>
        object(stdClass)#2224 (3) {
          ["id"]=>
          int(1026)
          ["key"]=>
          string(10) "pa_size-mm"
          ["value"]=>
          string(5) "38-10"
        }
        [2]=>
        object(stdClass)#2225 (3) {
          ["id"]=>
          int(1027)
          ["key"]=>
          string(8) "pa_wll-t"
          ["value"]=>
          string(2) "17"
        }
        [3]=>
        object(stdClass)#2226 (3) {
          ["id"]=>
          int(1028)
          ["key"]=>
          string(12) "pa_weight-kg"
          ["value"]=>
          string(4) "9-43"
        }
        [4]=>
        object(stdClass)#2227 (3) {
          ["id"]=>
          int(1047)
          ["key"]=>
          string(14) "_reduced_stock"
          ["value"]=>
          string(1) "4"
        }
      }
      ["sku"]=>
      string(8) "BSBS-013"
      ["price"]=>
      int(300000)
    }
    [1]=>
    object(stdClass)#2228 (14) {
      ["id"]=>
      int(98)
      ["name"]=>
      string(11) "Roundslings"
      ["product_id"]=>
      int(232)
      ["variation_id"]=>
      int(302)
      ["quantity"]=>
      int(4)
      ["tax_class"]=>
      string(0) ""
      ["subtotal"]=>
      string(7) "3040000"
      ["subtotal_tax"]=>
      string(6) "304000"
      ["total"]=>
      string(7) "3040000"
      ["total_tax"]=>
      string(6) "304000"
      ["taxes"]=>
      array(1) {
        [0]=>
        object(stdClass)#2229 (3) {
          ["id"]=>
          int(1)
          ["total"]=>
          string(6) "304000"
          ["subtotal"]=>
          string(6) "304000"
        }
      }
      ["meta_data"]=>
      array(4) {
        [0]=>
        object(stdClass)#2230 (3) {
          ["id"]=>
          int(1038)
          ["key"]=>
          string(8) "pa_wll-t"
          ["value"]=>
          string(2) "20"
        }
        [1]=>
        object(stdClass)#2231 (3) {
          ["id"]=>
          int(1039)
          ["key"]=>
          string(17) "pa_sling-length-m"
          ["value"]=>
          string(1) "6"
        }
        [2]=>
        object(stdClass)#2232 (3) {
          ["id"]=>
          int(1040)
          ["key"]=>
          string(12) "pa_weight-kg"
          ["value"]=>
          string(4) "22-2"
        }
        [3]=>
        object(stdClass)#2233 (3) {
          ["id"]=>
          int(1048)
          ["key"]=>
          string(14) "_reduced_stock"
          ["value"]=>
          string(1) "4"
        }
      }
      ["sku"]=>
      string(6) "RS-020"
      ["price"]=>
      int(760000)
    }
  }
  ["tax_lines"]=>
  array(1) {
    [0]=>
    object(stdClass)#2234 (9) {
      ["id"]=>
      int(99)
      ["rate_code"]=>
      string(5) "TAX-1"
      ["rate_id"]=>
      int(1)
      ["label"]=>
      string(3) "Tax"
      ["compound"]=>
      bool(false)
      ["tax_total"]=>
      string(6) "424000"
      ["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)#2236 (3) {
    ["self"]=>
    array(1) {
      [0]=>
      object(stdClass)#2235 (1) {
        ["href"]=>
        string(47) "https://sonoforte.com/wp-json/wc/v3/orders/1510"
      }
    }
    ["collection"]=>
    array(1) {
      [0]=>
      object(stdClass)#2237 (1) {
        ["href"]=>
        string(42) "https://sonoforte.com/wp-json/wc/v3/orders"
      }
    }
    ["customer"]=>
    array(1) {
      [0]=>
      object(stdClass)#2238 (1) {
        ["href"]=>
        string(48) "https://sonoforte.com/wp-json/wc/v3/customers/41"
      }
    }
  }
}