Gelöst Wawi doesn't update group's price after "Price Kalkulieren" if more than one Product

Balakirev

Aktives Mitglied
18. September 2019
17
7
Hello Everyone,

If set the price with a Price Calculator for more than one product, group's price will not be sync with shop.
Video playback is attached.

 

Balakirev

Aktives Mitglied
18. September 2019
17
7
Update:

The problem is with Prestashop Connector, the price will be updated if you DROP the table with specific_price in Prestashop and then wright new data. If the data is already exist it will not overwritten.

Moderator, could you please move the topic to the Prestashop Connector bugs.
 
Zuletzt bearbeitet:

Benjamin Schaffrath

Moderator
Mitarbeiter
31. Juli 2018
157
29
Hello Balakirev,

It's unfortunate but it seems like it works on my machine :D
Wawi prices.PNG
presta prices.PNG

Could you send me the Wawi Ableichlog and the related Connector logs (Developer Logging = true) related to the faulty quicksync via pm?

Unbenannt.PNG
 

Balakirev

Aktives Mitglied
18. September 2019
17
7
Hello Dear Benjamin Schaffrath,

Have you tryed to edit more than one product and than sync the changes? It's work for me too but only if i adjust one product's price and then sync it, if more than one, the price will be not updated.

Please check the video, first time i am syncing only one product and everything is working, than i adjust the price of two products and than sync it and it's doesn't work.


I will also install clean prestashop now to check if the problem is on my side. I will send the log from JTL Wawi and from the connector after i check everything.
 
Zuletzt bearbeitet:
  • Gefällt mir
Reaktionen: Benjamin Schaffrath

Balakirev

Aktives Mitglied
18. September 2019
17
7
Benjamin Schaffrath,

I have installed new prestashop, i made new MsSQL DB and connect it to Wawi, so everything was clean as from the box. Then i checked everything and i have same result. If i update only one product's price everything is ok, if i update more than one product, price is not updated. Attached is two zips with logs from prestashop. in wawi i didn't receive log file.

Ps. What is also important that if you sync more than one product, only the first one will be updated. My guess is that the function that update Special Prices does not have a loop inside.

Finally i made a video with clean system:
 

Anhänge

  • logs_1_product.zip
    3,5 KB · Aufrufe: 1
  • logs_3_products.zip
    3,7 KB · Aufrufe: 1
Zuletzt bearbeitet:
  • Gefällt mir
Reaktionen: Benjamin Schaffrath

Balakirev

Aktives Mitglied
18. September 2019
17
7
Update:

I have fix this, foreach loop was missing but although earlier in history on github it was already in code.
Code:
foreach($data as $price) {
    $id = $price->getProductId()->getEndpoint();
   
    if (!empty($id)) {
        list($productId, $combiId) = array_pad(explode('_', $id, 2), 2, 0);
       
        if (!empty($productId) && !is_null($combiId)) {
            $this->db->execute('
                DELETE p FROM '._DB_PREFIX_.'specific_price p
                WHERE p.id_product = '.$productId.'
                AND p.id_product_attribute = '.$combiId.'
                AND p.from = "0000-00-00 00:00:00"
            ');
        }
    }
}
 
  • Gefällt mir
Reaktionen: Benjamin Schaffrath

Benjamin Schaffrath

Moderator
Mitarbeiter
31. Juli 2018
157
29
Update:

I have fix this, foreach loop was missing but although earlier in history on github it was already in code.
Code:
foreach($data as $price) {
    $id = $price->getProductId()->getEndpoint();
 
    if (!empty($id)) {
        list($productId, $combiId) = array_pad(explode('_', $id, 2), 2, 0);
     
        if (!empty($productId) && !is_null($combiId)) {
            $this->db->execute('
                DELETE p FROM '._DB_PREFIX_.'specific_price p
                WHERE p.id_product = '.$productId.'
                AND p.id_product_attribute = '.$combiId.'
                AND p.from = "0000-00-00 00:00:00"
            ');
        }
    }
}

Nice find!
I could recreate the error after pushing prices for multiple products.
Yesterday I debuged the problem too and was thinking of moving the part that is in the initPush method to the pushData method, otherwise you would get a duplicate key entry if someone pushes a price 2 times in the same rpc call. ( Wawi was sending the same price 20 times in one RPC call yesterday)

I will push a possible fix to the feature/CO-635_product_price_duplicate_fix branch :)
 
Zuletzt bearbeitet:
  • Gefällt mir
Reaktionen: Balakirev
Ähnliche Themen
Titel Forum Antworten Datum
Neu Der Shop schickt die Aufträge nicht mehr an die Wawi JTL-Shop - Fehler und Bugs 1
Verwendung der Statistik in Wawi 1.8: JTL-Wawi 1.8 2
Download Wawi Version 1.8.5.1 JTL-Wawi 1.8 5
Neu Änderung Kundennummern in WaWi - welche Auswirkungen? Gelöste Themen in diesem Bereich 3
Neu Datenmigration von anderer WaWi auf JTL-WaWi Starten mit JTL: Projektabwicklung & Migration 11
Beschaffung Bestandsplanung in JTL Wawi 1.8.10 JTL-Wawi 1.8 0
Neu Workflow bei Login in WMS / WAWI starten User helfen Usern - Fragen zu JTL-Wawi 10
Neu JTL POS wird nicht an WaWi angebunden Einrichtung / Updates von JTL-POS 2
Neu JTL Shop 5 Daten - In "leere" JTL Wawi Datenbank importieren - Ist das möglich? User helfen Usern - Fragen zu JTL-Wawi 8
Neu Woocomnerce Aufträge werden in WAWI erstellt aber nicht als bezahlt markiert WooCommerce-Connector 2
Neu ecomdata down? Hosting JTL Wawi nicht erreichbar User helfen Usern - Fragen zu JTL-Wawi 46
Kennzahlen Übersicht für JTL Wawi - Wirtschaftliche Auswertung JTL-Wawi 1.8 0
[JTL-WAWI API] MandatoryApiScopes / OptionalApiScopes JTL-Wawi 1.8 3
Neu Migration Shopware 5 auf 6 mit JTL-Wawi ohne Datenverlust Shopware-Connector 0
Neu Datenumzug von Xentral ERP Software auf JTL-Wawi Schnittstellen Import / Export 4
Neu Suche Download JTL WAWI 1.3.20.0 User helfen Usern - Fragen zu JTL-Wawi 8
[JTL-WAWI API] Bestellung mit Stücklistenartikel JTL-Wawi 1.8 5
Neu JTL-Wawi 1.9 Open Beta User helfen Usern - Fragen zu JTL-Wawi 1
Neu Verkaufspreis Differenz Shop und Wawi JTL-Shop - Fehler und Bugs 4
Wie kann ich etwas in der WAWI Datenbank per SQL ändern? JTL-Wawi 1.8 2
Testmandantenumgebung in Wawi als Duplikat vom Echtzeitmandanten erstellen? JTL-Wawi 1.8 5
Neu Zahlungsart Kartenzahlung bleibt in Wawi als Auftrag ohne Rechnung Allgemeine Fragen zu JTL-POS 4
Grundeinstellung WaWi Gramm statt Kilogramm JTL-Wawi 1.8 3
Neu Was steckt hinter der Zahl von 53 Bildern auf Ebay bei Variationsartikeln (und einer unsinnigen Fehlermeldung der Wawi)? JTL-Wawi - Fehler und Bugs 2
Neu JTL Wawi [1.5.33] Startet nicht mehr JTL-Wawi - Fehler und Bugs 8
Neu Wechsel WAWI Hosting von JTL mit RDP auf ecomDATA User helfen Usern - Fragen zu JTL-Wawi 2
WAWI 1.8.12.0 stürzt ab, wenn die Verbindung zur Datenbank unterbrochen wurde JTL-Wawi 1.8 21
Neu Neue Oberfläche Wawi 1.8.12.2 (Beta) JTL-Wawi - Ideen, Lob und Kritik 0
Neu Suche jemanden BmeCat´s in Wawi Dienstleistung, Jobs und Ähnliches 2
Neu Wawi Sicherheitslücke geschlossen? Details? User helfen Usern - Fragen zu JTL-Wawi 13
Neu Update des JTL shops aus der Wawi funktioniert nicht Allgemeine Fragen zu JTL-Shop 1
Neu >Merchant Center Feld Textzeile welches wawi Feld User helfen Usern - Fragen zu JTL-Wawi 3
Neu JTL Wawi Bild-Upload unvollständig oder nur als mit meinem PC hochgeladen zu sehen User helfen Usern - Fragen zu JTL-Wawi 2
WaWi Preisuntergrenze für Artikel festschreiben JTL-Wawi 1.7 4
Artikelabgleich verlangsamt sich automatisch von Wawi JTL-Wawi 1.8 2
Kundenattribute aus Shop übernehmen und aus Wawi zurück an Shop übermitteln Einrichtung JTL-Shop5 1
Neu WaWi auf Mac Installation von JTL-Wawi 3
Neu Email Versand in JTL Wawi einstellen User helfen Usern - Fragen zu JTL-Wawi 3
Neu Produktdaten aus Shop zur Wawi WooCommerce-Connector 9
Neu Kunden aus Wawi nicht auffindbar JTL-POS - Fehler und Bugs 5
Neu Fehler beim Zahlungsabgleich - Zahlungsmodul - Wawi 1.5.55.6 Gelöste Themen in diesem Bereich 14
Neu Attribut wc_product_type in Wawi nicht vorhanden Gelöste Themen in diesem Bereich 5
Neu JTL-Wawi Logdatei Speicherort JTL-Wawi - Fehler und Bugs 6
In Diskussion JTL POS Kundennummer wird nicht an JTL Wawi übertragen JTL-POS - Fehler und Bugs 2
Kann ich eine email an die Wawi senden durch die dann ein neuer Auftrag generiert wird? (Daten müssen händisch vervollständigt werden...) JTL-Wawi 1.8 2
Issue angelegt [WAWI-75449] Artikel duplizieren - ASIN wird nicht mit dupliziert. JTL-Wawi - Fehler und Bugs 1
Neu Kommentar verschwindet nach Wawi-Abgleich JTL-Shop - Fehler und Bugs 3
Neu Update von Wawi 17.15.4. auf 18.12.0 geht nicht, weil Primary voll ist JTL-Wawi - Fehler und Bugs 4
Tablet Empfehlung für JTL-WaWi APP? JTL-Wawi App 0
Neu Kompatibilitätsliste JTL Shop & JTL Wawi Gelöste Themen in diesem Bereich 3

Ähnliche Themen