Jump to content
clearomizer-seller

SQL Kundendaten+Bestellung

Recommended Posts

Hallo ich bräuchte unbedingst eure Hilfe.Und zwar hab ich mich jetzt ein wenig mit dem Sql beschäftigt.Es ist wirklich toll,mann kann praktisch sämtlich daten exportieren.Nur leider such ich die Bestellungen.

Dieser code hier st eigentlich perfekt nur bräuchte ich zu den Kontakten noch die Bestellung

SELECT o.`id_order` AS `id`,
    CONCAT(LEFT(c.`firstname`, 1), '. ', c.`lastname`) AS `Customer`,
    ca.`name` AS `Carrier`,
    cu.`name` AS `Currency`,
    o.`payment`, CONCAT(o.`total_paid_real`, ' ', cu.`sign`) AS `Total`,
    o.`date_add` AS `Date`
FROM `ps_orders` o
LEFT JOIN `ps_customer` c ON (o.`id_customer` = c.`id_customer`)
LEFT JOIN `ps_carrier` ca ON (o.id_carrier = ca.id_carrier)
LEFT JOIN `ps_currency` cu ON (o.`id_currency` = cu.`id_currency`)

 

Hat jemand einen Rat wie der Code aussehen mus für Kunden+Bestellung,da ich dies gerne als csv datei in Fastbill importieren möchte

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More