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 JTL Wawi auf Windows Server 2025 mit SQL 2025? Installation von JTL-Wawi 4
Erfahrungen zur JTL Wawi 1.11.5 – Tipps, Bugs und Praxisberichte JTL-Wawi 1.11 4
Neu JTL-Wawi 1.11.4 – Vaterartikel lässt sich nach Entfernen eines Kindartikels nicht mehr speichern JTL-Wawi - Fehler und Bugs 3
Neu Neues E-Commerce Business mit JTL Wawi - Jtl Shop - Lexware Office (online) - Fragen Starten mit JTL: Projektabwicklung & Migration 2
Neu Eine Amazon-Abrechnung wurde mit Verspätung generiert und fehlt jetzt in WAWI Amazon-Anbindung - Fehler und Bugs 3
Neu Bestellung aus JTL-Shop wird nicht in die Wawi übernommen Allgemeine Fragen zu JTL-Shop 1
Monatsabschluss Amazon FBA UK / CH mit JTL2Datev WaWi 1.10 bei IDU Nutzung und Zwangs VCS für GB / Schweiz JTL-Wawi 1.10 0
Neu Amazon VCS - JTL Wawi > 1.10 - Lexware: Suche Best Practice Amazon-Anbindung - Ideen, Lob und Kritik 1
Neu Stückzahl in Wawi teilbar - aber nicht im Shop. Möglich? Allgemeine Fragen zu JTL-Shop 3
JTL-WAWI teilweise extrem lahm JTL-Wawi 1.10 8
Anfrage zur Einrichtung des Dashboards (Gewinnanzeige) in JTL-Wawi – Remote-Support über AnyDesk JTL-Wawi 1.10 6
Neu Artikel werden nach Löschung in Shopify nicht neu aus der WaWi übertragen Shopify-Connector 2
Neu Bestehende POS an WAWI anbinden (JTL Administrator) Einrichtung / Updates von JTL-POS 6
JTL Wawi 1.8.11.2 zum Download JTL-Wawi 1.8 1
JTL-WaWi Konfigurator Bestandteile in WMS zusammenfassen JTL-Wawi 1.11 3
Extension Store: Kann Kompatibiltität zu Wawi 1.11 nicht einstellen JTL-Wawi 1.11 6
Neu Sind Support-Tickets für WaWi und Ameise ohne kostenpflichtigen Tarif nicht mehr möglich? JTL-Wawi - Fehler und Bugs 3
Neu BMEcat Schnittstelle JTL-Wawi [DEV] Schnittstellen Import / Export 3
Neu 0,1% an der Kasse erstellte Kunden nicht synchronisiert mit JTL Wawi Allgemeine Fragen zu JTL-POS 0
Neu Welche SQL Server Version für WaWi 1.0.0.0.0 unter Windows 11 Installation von JTL-Wawi 6
Neu Wawi 2.0.... Hab ich was verpasst? ;-) Eigene Übersichten in der JTL-Wawi 1
Kein e-Mail Versand aus der Wawi - Fehlermeldung JTL-Wawi 1.11 18
Neu Download WaWi 1.0.0.0.0 Installation von JTL-Wawi 2
Neu Update WAWI 1.10.14.3 auf 1.11.4.0 Installation von JTL-Wawi 4
Wawi-Update cloudflare??? JTL-Wawi 1.11 5
Neu Wawi Abonnements, wie automatisiert vorgehen? best practice? Wawi 1.10.14.3 User helfen Usern - Fragen zu JTL-Wawi 0
Neu Wawi 0.9.9.923 zwecks Aufbewahrungspflicht auf Windows 11 PC umziehen Installation von JTL-Wawi 5
Neu SUCHE Freelancer für JTL WAWI Anbindung an WooCommerce und Einrichtung Dienstleistung, Jobs und Ähnliches 2
Neu JTL Wawi sendet keine aufzuschaltenden Artikel an Amzon Amazon-Anbindung - Fehler und Bugs 2
Neu Ist es korrekt, dass Belegdaten von Amazon (VCS) mit einer etwa 7-tägigen Verzögerung in WAWI landen? Amazon-Anbindung - Fehler und Bugs 8
Neu Ärger mit CountX: Verzögerung bei der Bearbeitung von VCS-Daten in WAWI führt zu unvollständigen Steuerdaten User helfen Usern - Fragen zu JTL-Wawi 0
Neu Nicht alle Artikel einer Bestellung werden an die WaWi übermittelt Amazon-Anbindung - Fehler und Bugs 3
FIFO oder LIFO in WAWI JTL-Wawi 1.10 2
Neu GELÖST! Amazon "Aufzuschaltende Angebote" seit Tagen in "wird gesendet" bei WAWI 1.11.3 Amazon-Anbindung - Fehler und Bugs 10
Fehler beim Verknüpfen von JTL-FFN mit Wawi – „Anmeldung nicht möglich“ JTL-Wawi 1.11 1
Neu Dokumentation: Kundenverknüpfung JTL-Wawi (Version 1.10.15.0) zu JTL-Shop JTL-Shop 5.2 Onlineshop-Anbindung 0
Einzelartikel als Kindartikel zu einem neuen Vaterartikel zusammenführen (JTL-Wawi + Shopware Connector) JTL-Wawi 1.8 0
Neu Handhabung JTL Wawi - zu Datev Unternehmen Online User helfen Usern - Fragen zu JTL-Wawi 1
Neu JTL-Wawi Aufträge die mit JTL-POS bezahlt wurde tauchen im Tagenabschluss auf JTL-POS - Fehler und Bugs 7
Neu Bitte legen Sie eine Retoure in JTL-Wawi an, damit eine korrekte Zuordnung zu den Stücklistenartikeln möglich ist. - WMS Retoure JTL-WMS / JTL-Packtisch+ - Fehler und Bugs 0
Wawi API REST-Server lässt sich nicht einrichten / Fehler 404 JTL-Wawi 1.11 1
Neu Kapazitäten frei für Routineaufgaben JTL Wawi Dienstleistung, Jobs und Ähnliches 0
Neu B2B Preis wird nicht an Amazon übergeben. Auch nicht WAWI intern User helfen Usern - Fragen zu JTL-Wawi 1
Datenabgleich von WooCommerce auf JTL Wawi 1.9.7.0 JTL-Wawi 1.9 0
JTL Wawi to ShopApotheke Artikelname eigenesfeld JTL-Wawi 1.11 16
Neu Wawi zu Shopify connector Funktionseinstellungen ändern Allgemeines zu den JTL-Connectoren 0
Sonderpreise werden vom Shop aus Wawi nicht übernommen JTL-Wawi 1.10 9
Neu Wer hat 2025 mit Xentral Erfahrungen gesammelt? Wechsel von JTL‑Wawi in Sicht Smalltalk 17
JTL Wawi und JTL-POS gleichen nicht mehr ab JTL-Wawi 1.11 2
Kann ich mit dieser SQL Version die neue WaWi 1.11.1 installieren? JTL-Wawi 1.11 2

Ähnliche Themen