Iniziato: 2024-07-26 17: 50: 30
updatecreate: check se ARRIVATO ORDINE test processing
updatecreate: ARRIVATO ORDINE test processing
{ "id": 68501, "parent_id": 0, "status": "processing", "currency": "EUR", "version": "9.0.2", "prices_include_tax": true, "date_created": "2024-07-26T17:49:39", "date_modified": "2024-07-26T17:49:44", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "0.00", "shipping_tax": "0.00", "cart_tax": "0.00", "total": "23.28", "total_tax": "0.00", "customer_id": 0, "order_key": "wc_order_8fUNMfWNegwzq", "billing": { "first_name": "Test3", "last_name": "Test3 PAOLO", "company": null, "address_1": "via TEST", "address_2": null, "city": "Rimini", "state": "RN", "postcode": "47923", "country": "IT", "email": "paolo@riso.app", "phone": null }, "shipping": { "first_name": "Test3", "last_name": "Test3 PAOLO", "company": null, "address_1": "via TEST", "address_2": null, "city": "Rimini", "state": "RN", "postcode": "47923", "country": "IT", "phone": null }, "payment_method": "test", "payment_method_title": "Test Pagamento per PROVE", "transaction_id": null, "customer_ip_address": "108.162.220.114", "customer_user_agent": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/126.0.0.0 Safari\/537.36", "created_via": "checkout", "customer_note": null, "date_completed": null, "date_paid": "2024-07-26T17:49:44", "cart_hash": "da8aea5040d1c7b7a6db467b48360e86", "number": "68501", "meta_data": [ { "id": 1385416, "key": "is_vat_exempt", "value": "no" }, { "id": 1385417, "key": "yaydp_product_pricing_rules", "value": [] }, { "id": 1385418, "key": "yaydp_cart_discount_rules", "value": [] }, { "id": 1385419, "key": "yaydp_checkout_fee_rules", "value": [] }, { "id": 1385423, "key": "_ga_tracked", "value": "1" } ], "line_items": [ { "id": 241, "name": "Viaggio verso Casa - Nuovo", "product_id": 42713, "variation_id": 42714, "quantity": 1, "tax_class": null, "subtotal": "23.28", "subtotal_tax": "0.00", "total": "23.28", "total_tax": "0.00", "taxes": [], "meta_data": [ { "id": 2067, "key": "pa_versione", "value": "nuovo", "display_key": "Versione", "display_value": "Nuovo" }, { "id": 2074, "key": "_reduced_stock", "value": "1", "display_key": "_reduced_stock", "display_value": "1" } ], "sku": "15102", "price": 23.275, "image": { "id": 67818, "src": "https:\/\/www.fioredellavita.it\/wp-content\/uploads\/2022\/11\/viaggio-verso-casa.jpg" }, "parent_name": "Viaggio verso Casa" } ], "tax_lines": [], "shipping_lines": [ { "id": 242, "method_title": "Spedizione gratuita", "method_id": "free_shipping", "instance_id": "2", "total": "0.00", "total_tax": "0.00", "taxes": [], "meta_data": [ { "id": 2073, "key": "Prodotti", "value": "Viaggio verso Casa - Nuovo × 1", "display_key": "Prodotti", "display_value": "Viaggio verso Casa - Nuovo × 1" } ] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "payment_url": "https:\/\/www.fioredellavita.it\/pagamento\/order-pay\/68501\/?pay_for_order=true&key=wc_order_8fUNMfWNegwzq", "is_editable": false, "needs_payment": false, "needs_processing": true, "date_created_gmt": "2024-07-26T15:49:39", "date_modified_gmt": "2024-07-26T15:49:44", "date_completed_gmt": null, "date_paid_gmt": "2024-07-26T15:49:44", "currency_symbol": "\u20ac", "_links": { "self": [ { "href": "https:\/\/www.fioredellavita.it\/wp-json\/wc\/v3\/orders\/68501" } ], "collection": [ { "href": "https:\/\/www.fioredellavita.it\/wp-json\/wc\/v3\/orders" } ] } }
myidInternet=68501
Creazione Ordine... codice=68501
$orderdetail->CodArticoloGM= 15102
sku=15102
Dettaglio Ordine: { "IdInternet": 68501, "CodArticoloGM": 15102, "Qta": 1, "PrezzoLordo": "23.28", "Enabled": 1, "DataOra": "2024-07-26T17:49:39", "id": 56 }
Cerco il customer_id: 0
crea Cliente: Test3 Test3 PAOLO
Errore: Attempt to read property "key" on array
...fine compilazione campi Cliente{ "CodClienteInternet": "100", "Nominativo": "Test3 Test3 PAOLO", "Indirizzo": "via TEST", "Citta": "Rimini", "Cap": "47923", "Provincia": "RN", "Telefono": null, "Email": null, "CodClienteGM": "", "IdNazione": 227, "IdInternet": 68501 }
Salvato Cliente: { "CodClienteInternet": "100", "Nominativo": "Test3 Test3 PAOLO", "Indirizzo": "via TEST", "Citta": "Rimini", "Cap": "47923", "Provincia": "RN", "Telefono": null, "Email": null, "CodClienteGM": "", "IdNazione": 227, "IdInternet": 68501 }
Order: { "IdInternet": 68501, "Enabled": 1, "idSito": 7, "DataOra": "2024-07-26T17:49:39", "Note": null, "Totale": "23.28", "Spedizioniere": "GLS", "ImportoSpedizione": "0.00", "CodClienteInternet": 100, "id": 0 }
Inserito ordine !
{ "id": 68501, "parent_id": 0, "status": "processing", "currency": "EUR", "version": "9.0.2", "prices_include_tax": true, "date_created": "2024-07-26T17:49:39", "date_modified": "2024-07-26T17:49:44", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "0.00", "shipping_tax": "0.00", "cart_tax": "0.00", "total": "23.28", "total_tax": "0.00", "customer_id": 0, "order_key": "wc_order_8fUNMfWNegwzq", "billing": { "first_name": "Test3", "last_name": "Test3 PAOLO", "company": null, "address_1": "via TEST", "address_2": null, "city": "Rimini", "state": "RN", "postcode": "47923", "country": "IT", "email": "paolo@riso.app", "phone": null }, "shipping": { "first_name": "Test3", "last_name": "Test3 PAOLO", "company": null, "address_1": "via TEST", "address_2": null, "city": "Rimini", "state": "RN", "postcode": "47923", "country": "IT", "phone": null }, "payment_method": "test", "payment_method_title": "Test Pagamento per PROVE", "transaction_id": null, "customer_ip_address": "108.162.220.114", "customer_user_agent": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/126.0.0.0 Safari\/537.36", "created_via": "checkout", "customer_note": null, "date_completed": null, "date_paid": "2024-07-26T17:49:44", "cart_hash": "da8aea5040d1c7b7a6db467b48360e86", "number": "68501", "meta_data": [ { "id": 1385416, "key": "is_vat_exempt", "value": "no" }, { "id": 1385417, "key": "yaydp_product_pricing_rules", "value": [] }, { "id": 1385418, "key": "yaydp_cart_discount_rules", "value": [] }, { "id": 1385419, "key": "yaydp_checkout_fee_rules", "value": [] }, { "id": 1385423, "key": "_ga_tracked", "value": "1" } ], "line_items": [ { "id": 241, "name": "Viaggio verso Casa - Nuovo", "product_id": 42713, "variation_id": 42714, "quantity": 1, "tax_class": null, "subtotal": "23.28", "subtotal_tax": "0.00", "total": "23.28", "total_tax": "0.00", "taxes": [], "meta_data": [ { "id": 2067, "key": "pa_versione", "value": "nuovo", "display_key": "Versione", "display_value": "Nuovo" }, { "id": 2074, "key": "_reduced_stock", "value": "1", "display_key": "_reduced_stock", "display_value": "1" } ], "sku": "15102", "price": 23.275, "image": { "id": 67818, "src": "https:\/\/www.fioredellavita.it\/wp-content\/uploads\/2022\/11\/viaggio-verso-casa.jpg" }, "parent_name": "Viaggio verso Casa" } ], "tax_lines": [], "shipping_lines": [ { "id": 242, "method_title": "Spedizione gratuita", "method_id": "free_shipping", "instance_id": "2", "total": "0.00", "total_tax": "0.00", "taxes": [], "meta_data": [ { "id": 2073, "key": "Prodotti", "value": "Viaggio verso Casa - Nuovo × 1", "display_key": "Prodotti", "display_value": "Viaggio verso Casa - Nuovo × 1" } ] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "payment_url": "https:\/\/www.fioredellavita.it\/pagamento\/order-pay\/68501\/?pay_for_order=true&key=wc_order_8fUNMfWNegwzq", "is_editable": false, "needs_payment": false, "needs_processing": true, "date_created_gmt": "2024-07-26T15:49:39", "date_modified_gmt": "2024-07-26T15:49:44", "date_completed_gmt": null, "date_paid_gmt": "2024-07-26T15:49:44", "currency_symbol": "\u20ac", "_links": { "self": [ { "href": "https:\/\/www.fioredellavita.it\/wp-json\/wc\/v3\/orders\/68501" } ], "collection": [ { "href": "https:\/\/www.fioredellavita.it\/wp-json\/wc\/v3\/orders" } ] } }