Iniziato: 2024-07-26 17: 41: 31
updatecreate: check se ARRIVATO ORDINE test processing
updatecreate: ARRIVATO ORDINE test processing
{ "id": 68500, "parent_id": 0, "status": "processing", "currency": "EUR", "version": "9.0.2", "prices_include_tax": true, "date_created": "2024-07-26T17:41:03", "date_modified": "2024-07-26T17:41:09", "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_5Pln8XSDzeve0", "billing": { "first_name": "Test Paolo", "last_name": "Test Paolo2", "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": "Test Paolo", "last_name": "Test Paolo2", "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": "141.101.104.103", "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:41:09", "cart_hash": "da8aea5040d1c7b7a6db467b48360e86", "number": "68500", "meta_data": [ { "id": 1385369, "key": "is_vat_exempt", "value": "no" }, { "id": 1385370, "key": "yaydp_product_pricing_rules", "value": [] }, { "id": 1385371, "key": "yaydp_cart_discount_rules", "value": [] }, { "id": 1385372, "key": "yaydp_checkout_fee_rules", "value": [] }, { "id": 1385376, "key": "_ga_tracked", "value": "1" } ], "line_items": [ { "id": 239, "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": 2050, "key": "pa_versione", "value": "nuovo", "display_key": "Versione", "display_value": "Nuovo" }, { "id": 2057, "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": 240, "method_title": "Spedizione gratuita", "method_id": "free_shipping", "instance_id": "2", "total": "0.00", "total_tax": "0.00", "taxes": [], "meta_data": [ { "id": 2056, "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\/68500\/?pay_for_order=true&key=wc_order_5Pln8XSDzeve0", "is_editable": false, "needs_payment": false, "needs_processing": true, "date_created_gmt": "2024-07-26T15:41:03", "date_modified_gmt": "2024-07-26T15:41:09", "date_completed_gmt": null, "date_paid_gmt": "2024-07-26T15:41:09", "currency_symbol": "\u20ac", "_links": { "self": [ { "href": "https:\/\/www.fioredellavita.it\/wp-json\/wc\/v3\/orders\/68500" } ], "collection": [ { "href": "https:\/\/www.fioredellavita.it\/wp-json\/wc\/v3\/orders" } ] } }
myidInternet=68500
Creazione Ordine... codice=68500
$orderdetail->CodArticoloGM= 15102
sku=15102
Dettaglio Ordine: { "IdInternet": 68500, "CodArticoloGM": 15102, "Qta": 1, "PrezzoLordo": "23.28", "Enabled": 1, "DataOra": "2024-07-26T17:41:03", "id": 55 }
Cerco il customer_id: 0
crea Cliente: Test Paolo Test Paolo2
Errore: Attempt to read property "key" on array
...fine compilazione campi Cliente{ "CodClienteInternet": "100", "Nominativo": "Test Paolo Test Paolo2", "Indirizzo": "via TEST,", "Citta": "Rimini", "Cap": "47923", "Provincia": "RN", "Telefono": null, "Email": null, "CodClienteGM": "", "IdNazione": 227, "IdInternet": 68500 }
Errore nella fase di salvataggio: SQLSTATE[ 23000 ]: [Microsoft ][ODBC Driver 17 for SQL Server ][SQL Server ]Violazione del vincolo PRIMARY KEY 'PK_T_WOO_Clienti'. Impossibile inserire la chiave duplicata nell'oggetto 'dbo.T_WOO_Clienti'. Valore della chiave duplicata: (100, 68500). (SQL: insert into [T_WOO_Clienti ] ([CodClienteInternet ], [Nominativo ], [Indirizzo ], [Citta ], [Cap ], [Provincia ], [Telefono ], [Email ], [CodClienteGM ], [IdNazione ], [IdInternet ]) values (100, Test Paolo Test Paolo2, via TEST, , Rimini, 47923, RN, ?, ?, , 227, 68500))
Errore Nuovo Ordine: SQLSTATE[ 23000 ]: [Microsoft ][ODBC Driver 17 for SQL Server ][SQL Server ]Violazione del vincolo PRIMARY KEY 'PK_T_WOO_TestateOrdini'. Impossibile inserire la chiave duplicata nell'oggetto 'dbo.T_WOO_TestateOrdini'. Valore della chiave duplicata: (68500). (SQL: insert into [T_WOO_TestateOrdini ] ([IdInternet ], [CodClienteInternet ], [Enabled ], [idSito ], [DataOra ], [Note ], [Totale ], [Spedizioniere ], [ImportoSpedizione ]) values (68500, 0, 1, 7, 2024-07-26T17: 41: 03, ?, 23.28, GLS, 0.00))