Die SQL-Anweisung hab ich vom Import-Tool übernommen und leicht angepasst. function getCustomerSelect() { return " SELECT u.customers\_id as customerID, u.customers\_id as customernumber, u.account\_type as accountmode, IF(a.entry\_gender IN ('m', 'Herr'), 'mr', 'ms') as billing\_salutation, a.entry\_firstname as billing\_firstname, a.entry\_lastname as billing\_lastname, a.entry\_company as billing\_company, '' as billing\_department, a.entry\_street\_address as billing\_street, '' as billing\_streetnumber, a.entry\_postcode as billing\_zipcode, a.entry\_city as billing\_city, c.countries\_iso\_code\_2 as billing\_countryiso, IF(a.entry\_gender IN ('m', 'Herr'), 'mr', 'ms') as shipping\_salutation, a.entry\_firstname as shipping\_firstname, a.entry\_lastname as shipping\_lastname, a.entry\_company as shipping\_company, '' as shipping\_department, a.entry\_street\_address as shipping\_street, '' as shipping\_streetnumber, a.entry\_postcode as shipping\_zipcode, a.entry\_city as shipping\_city, c.countries\_iso\_code\_2 as shipping\_countryiso, u.customers\_telephone as phone, u.customers\_fax as fax, u.customers\_email\_address as email, u.customers\_dob as birthday, u.customers\_vat\_id as ustid, u.customers\_newsletter as newsletter, u.customers\_password as md5\_password, u.customers\_status as customergroupID, u.customers\_date\_added as firstlogin, IF(u.delete\_user=1, 0, 1) as active FROM customers u JOIN address\_book a ON a.customers\_id=u.customers\_id AND a.address\_book\_id=u.customers\_default\_address\_id LEFT JOIN countries c ON c.countries\_id=a.entry\_country\_id WHERE u.customers\_id \< 10; "; }
Hey, da würde ich direkt in der connectors/api/import/shopware.php - Funktion sCustomer mal einen Breakpoint setzen bzw. den SQL-Code ausgeben lassen. Also einfach jeweils vor: $result = $this-\>sDB-\>Execute($sql); die($sql); ausführen. Dann die Queries manuell in PHPMyAdmin ausführen und prüfen wo er aussteigt. Da wird wahrscheinlich irgendwo ein SQL-Fehler auftreten und da schweigt sich der API-Import im Moment noch aus.