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 an Testumgebung JTL Shop anbinden User helfen Usern - Fragen zu JTL-Wawi 3
Neu Amazon Stornoanfragen in Wawi Amazon-Anbindung - Fehler und Bugs 0
Neu Wawi-Aufträge auf JTL POS Kassenbericht / Tagesabschluss ausgeben JTL-POS - Fehler und Bugs 4
Neu Zusatzfelder aus Shopware 6 an WAWI übertragen Shopware-Connector 0
Neu Erfahrene Remote-Supportkraft für JTL-Wawi & Greyhound – flexibel & zuverlässig Dienstleistung, Jobs und Ähnliches 0
Neu Probleme beim Abgleich von JTL WAWI und JTL Shop JTL-Wawi - Fehler und Bugs 2
jtl wawi länge Metadaten Zeichen einstellen JTL-Wawi 1.9 5
Neu Anpassung Artikelansicht in der JTL WAWI APP Arbeitsabläufe in JTL-Wawi 0
Neu JTL-Wawi - WooCommerce - Pfand WooCommerce-Connector 0
Neu JTL WAWI Connector zu Shopify geht in den Timeout Shopify-Connector 0
Neu JTL WaWi (SQL Server)soll nur auf PC laufen User helfen Usern - Fragen zu JTL-Wawi 9
Neu JTL Wawi und Returnless Schnittstellen Import / Export 0
Neu JTL-WaWi 1.10.10.3 - JTL-Connector (Drittanbieter) Sonderpreise nicht im product.push enthalten JTL-Wawi - Fehler und Bugs 0
Neu Falscher FBA-Bestand in Wawi Amazon-Anbindung - Fehler und Bugs 2
Neu JTL-Wawi 1.10.8.0 Error bei Bestellhistorie erneut Abrufen vom Shop JTL-Wawi - Fehler und Bugs 0
Neu Zusammenspiel Greyhound Wawi Servicedesk (Beta) 2
Gelöst [WAWI-75772] Workflow Erscheinungsdatum Feld leeren deaktiviert Überverkäufe möglich JTL-Workflows - Fehler und Bugs 2
Neu Erfahrungen Quivo "Send it Yourself" Labels + mögliche Alternativen - Versanddatenaustausch via JTL Wawi JTL-ShippingLabels - Ideen, Lob und Kritik 1
Neu Amazon Custom: Werte werden nicht in die WaWi übergeleitet Amazon-Anbindung - Fehler und Bugs 1
Neu JTL WAWI 1.9.8.0 - Manuell eingegebene Trackingnummern werden nicht mehr übertragen JTL-ShippingLabels - Fehler und Bugs 1
Neu WAWI 1.9.8.0 In Lieferadresse fehlen wichtige Daten Amazon-Anbindung - Fehler und Bugs 14
Neu Sortiernummer - WaWi Kategorien werden immer vor die eihnen Seiten sortiert Allgemeine Fragen zu JTL-Shop 0
Neu Rechnungs- und Lieferadresse werden nicht in die WAWI übertragen JTL-Shop - Fehler und Bugs 1
Neu Retouren unter Wawi 1.9 einbuchen - ich raffe es nicht. User helfen Usern - Fragen zu JTL-Wawi 0
Neu Retouren unter Wawi 1.9 einbuchen - ich raffe es nicht. Arbeitsabläufe in JTL-Wawi 1
Neu JTL-Wawi kein Datenbankzugriff nach Windows Update JTL-Wawi - Fehler und Bugs 8
Neu Hilfe! Nach dem Update auf 1.10.10.3 startet WAWI GUI nicht mehr! JTL-Wawi - Fehler und Bugs 1
Artikel Duplizieren bringt Fehlermeldung und WaWi hängt sich auf WaWi 1.10.10.3 JTL-Wawi 1.10 6
Neu Das Stable Release von JTL-Wawi 1.10 ist da! Aktuell - 1.10.10.4 Releaseforum 1
Neu Server Hardware für eigenes Wawi / SQL Hosting Installation von JTL-Wawi 3
Neu Direkte Anbindung Wawi <-> Zahlungsanbieter möglich Schnittstellen Import / Export 3
Neu JTL Wawi / Shop / POS in der Schweiz Starten mit JTL: Projektabwicklung & Migration 0
Neu das JTL Konfigurator-Modul kann ich ab welcher Wawi Version nutzen ? User helfen Usern - Fragen zu JTL-Wawi 6
Neu Dienstleistungs-Gutschein in Deutschland -> Verkauf in die Schweiz (Steuereinstellung Wawi) Arbeitsabläufe in JTL-Wawi 2
Kategorien ohne WaWi aus Shop entfernen Einrichtung JTL-Shop5 2
JTL Wawi startet nicht mehr nach Windows Update KB5055683 JTL-Wawi 1.9 1
Nach Shopabgleich wird der Auftrag in Wawi immer mit Versandart "Abholung" gesetzt JTL-Wawi 1.9 0
Inkompatible Version JTL WAWI - Die verwendete Version ist zu alt JTL-Wawi 1.9 3
Artikel wird nach Erstellung nicht in der Wawi angezeigt, ist aber in der Datenbank vorhanden. JTL-Wawi 1.9 4
Neu Wie läuft eine Bestellung ab und wie bekomme ich die Aufträge aus dem Shop in die Wawi übertragen? Betrieb / Pflege von JTL-Shop 0
JTL-Wawi 1.9.7.1 – Wie kann man "Suchbegriffe" für Kaufland.de anlegen? JTL-Wawi 1.9 0
Amazon Bestellungen mit Versandentgelt kaufen im Seller Central automatisch in der Wawi abschließen JTL-Wawi 1.9 0
Neu Probleme beim Abgleich von JTL WAWI und JTL Shop JTL-Wawi - Fehler und Bugs 8
Neu JTL Wawi - SaaS Shopware 6 - Eigene Felder anlegen User helfen Usern - Fragen zu JTL-Wawi 0
Neu JTL Wawi Beschaffung - keine EK Preise User helfen Usern - Fragen zu JTL-Wawi 6
Email aus der WAWI 1.9.7.0 werden nicht an Kunden gesendet JTL-Wawi 1.9 3
Neu Import demo database for Wawi User helfen Usern - Fragen zu JTL-Wawi 0
Neu Übermittlung von Transparency-Seriennummern an Amazon mit JTL-Wawi Amazon-Anbindung - Ideen, Lob und Kritik 2
Auftragsimport eBay in JTL-WaWi nicht automatisiert möglich JTL-Wawi 1.9 3
PayPal Zahlungsabgleich in Wawi nicht mehr sichtbar wegen zu langem Verwendungszweck? JTL-Wawi 1.9 2

Ähnliche Themen