Inhaltsverzeichnis

    Daten aus Oxid importieren

    Dieser Beitrag enstand mit freundlicher Unterstützung vom User „knackig“ aus unserem [Forum].

    Artikeldaten

    Artikeldaten aus Oxid übernehmen Sie am besten mit dem kostenlosen JTL-Connector für Oxid.

    Übernahme der Kundendaten

    Kundendaten (Import im Shop3 unter Admin -> Import/Export -> Kundenimport):

    SELECT DISTINCT 
    oxuser.oxpassword AS cPasswort, 
    oxuser.oxsal AS cAnrede,
    oxuser.oxfname AS cVorname,
    oxuser.oxlname AS cNachname,
    oxuser.oxcompany AS cFirma,
    CONCAT(oxuser.oxstreet," ",oxuser.oxstreetnr) AS cStrasse,
    oxuser.oxaddinfo AS cAdressZusatz,
    oxuser.oxzip AS cPLZ,
    oxuser.oxcity AS cOrt,
    "" AS cBundesland,
    oxcountry.oxisoalpha2 AS cLand,
    oxuser.oxfon AS cTel,
    oxuser.oxfax AS cFax,
    oxuser.oxusername AS cMail,
    oxuser.oxustid AS cUSTID,
    oxuser.oxbirthdate AS dGeburtstag,
    DATE(oxuser.oxcreate) AS dErstellt
    FROM oxuser, oxcountry
    WHERE oxuser.oxcountryid = oxcountry.oxid

    Wegen der Verschlüsselung muss das Passwort neu generiert werden, also die ensprechende Option beim Import wählen.

    Übernahme der Newsletterempfänger

    Newsletterempfänger (exportiert werden nur die durch Double-Opt-In bestätigten Empfänger; Import unter Admin -> Import/Export -> Import Newsletterempfänger):

    SELECT 
    CASE `OXSAL` WHEN 'MR' THEN 'Herr' WHEN 'MRS' THEN 'Frau' ELSE '' END AS cAnrede,
    `OXFNAME` AS cVorname,
    `OXLNAME` AS cNachname,
    `OXEMAIL` AS cEmail,
    `OXSUBSCRIBED` AS dEingetragen
    FROM `oxnewssubscribed`
    WHERE `OXEMAILFAILED` = 0 AND `OXDBOPTIN` = 1

    Übernahme der Artikelbewertungen

    Artikelbewertungen (Import direkt in der Shop-Datenbank wie oben gezeigt):

    SELECT 
    CONCAT(
    'INSERT INTO tbewertung (kArtikel,kKunde,kSprache,cName,cTitel,cText,nHilfreich,nNichtHilfreich,nSterne,nAktiv,dDatum) VALUES ((SELECT kArtikel FROM tartikel WHERE cArtNr ="', oxarticles.OXARTNUM,'"),' ,oxuser.OXCUSTNR,',1,"', oxuser.OXFNAME,'","","', REPLACE(oxreviews.OXTEXT,'"','\\"'), '","","",', oxreviews.OXRATING, ',1,"', DATE(oxreviews.OXCREATE),  '");')
    FROM oxreviews 
    JOIN oxarticles ON oxreviews.OXOBJECTID=oxarticles.OXID
    JOIN oxuser ON oxreviews.OXUSERID=oxuser.OXID

    Übernahme der SEO-Links vom OXID zu JTL-Shop3 damit Google und Co keine Fehler vorfinden, die URL muss angepasst werden:

    SELECT 
    CONCAT("http://www.shopdomain.de/",`OXSEOURL`) AS sourceurl, 
    (SELECT `OXARTNUM` FROM `oxarticles` WHERE `OXID` = `OXOBJECTID`) AS articlenumber
    FROM `oxseo` 
    WHERE `OXLANG` = 0 AND `OXTYPE` = "oxarticle" AND `OXOBJECTID` != ""

    Übernahme der Artikeldaten von Oxid in JTL-Wawi mit JTL-Ameise

    Den folgenden SQL-Befehl in Ihrer Oxid-Datenbank absetzen, um eine importierbare CSV-Datei zu erzeugen:

    SELECT DISTINCT
    oxarticles.oxid AS KinderID,
    oxarticles.oxparentid AS VaterID,
    oxarticles.oxactive AS Webshopaktiv,
    oxarticles.oxartnum AS Artikelnummer,
    oxarticles.oxtitle AS Artikelname,
    oxartextends.oxlongdesc AS langBeschreibung,
    oxarticles.oxshortdesc AS Kurzbeschreibung,
    oxarticles.oxtitle_1 AS Artikelname1,
    oxarticles.oxshortdesc_1 AS Kurzbeschreibung1,
    oxarticles.oxtitle_2 AS Artikelname2,
    oxarticles.oxshortdesc_2 AS Kurzbeschreibung2,
    oxarticles.oxtitle_3 AS Artikelname3,
    oxarticles.oxshortdesc_3 AS Kurzbeschreibung3,
    oxarticles.oxprice AS Verkaufspreis1,
    oxarticles.oxblfixedprice AS VK2,
    oxarticles.oxpriceA AS VK3,
    oxarticles.oxpriceB AS VK4,
    oxarticles.oxpriceC AS VK5,
    oxarticles.oxBprice AS VK6,
    oxarticles.oxTPrice AS VK7,
    oxarticles.oxunitname AS Einheit,
    oxarticles.oxunitquantity AS ProEinheit,
    oxarticles.oxpic1 AS Bild1,
    oxarticles.oxpic2 AS Bild2,
    oxarticles.oxpic3 AS Bild3,
    oxarticles.oxpic4 AS Bild4,
    oxarticles.oxpic5 AS Bild5,
    oxarticles.oxpic6 AS Bild6,
    oxarticles.oxpic7 AS Bild7,
    oxarticles.oxpic8 AS Bild8,
    oxarticles.oxpic9 AS Bild9,
    oxarticles.oxpic10 AS Bild10,
    oxarticles.oxpic11 AS Bild11,
    oxarticles.oxpic12 AS Bild12,
    oxarticles.oxweight AS Artikelgewicht,
    oxarticles.oxstock AS Lagerbestand,
    oxarticles.oxsoldamount AS Lagerbestand2,
    oxarticles.oxsort AS Sortiernummer,
    oxarticles.oxvarname AS Variationsname1englisch,
    oxarticles.oxvarcount AS Variationswert1englisch,
    oxarticles.oxvarname_1 AS Variationsname1,
    oxarticles.oxvarselect_1 AS Variationswert1,
    oxarticles.oxvarname_2 AS Variationsname2,
    oxarticles.oxvarselect_2 AS Variationswert2,
    oxarticles.oxvarname_3 AS Variationsname3,
    oxarticles.oxvarselect_3 AS Variationswert3,
    oxcategories.oxtitle_1 AS Kategorie
    from oxarticles 
    left join oxobject2category on oxobject2category.oxobjectid = oxarticles.oxid 
    left join oxcategories on  oxcategories.oxid = oxobject2category.oxcatnid
    left join oxartextends on oxartextends.oxid = oxarticles.oxid

    Disclaimer

    Oxid Esales ist ein eingetragenes Warenzeichen der OXID eSales AG