prestamax Posted December 9, 2024 Share Posted December 9, 2024 Hallo, kann mir jemand ein Modul empfehlen, mit dem ich Kunden mit Adresse in eine Tabelle exporieren kann und noch dazu einen Zeitraum eingeben kann. Also z.B. alle Kunden mit Adressen, die in einem bestimmten Aktionszeitraum eine Bestellung aufgegeben haben. Gibt es so ein Modul? Herzlichen Dank im voraus für jeden Tipp! Link to comment Share on other sites More sharing options...
Daresh Posted December 14, 2024 Share Posted December 14, 2024 Für solche Anforderungen kann der SQL-Manager von Presta genutzt werden, indem dort eine entsprechend aufgebaute Abfrage hinzugefügt wird. Zum Beispiel so: SELECT c.id_customer AS customer_id, c.firstname AS first_name, c.lastname AS last_name, c.email AS email, a.address1 AS address_line_1, a.address2 AS address_line_2, a.postcode AS postal_code, a.city AS city, a.phone AS phone, a.phone_mobile AS mobile_phone, o.id_order AS order_id, o.date_add AS order_date, o.total_paid AS order_total FROM ps_customer c JOIN ps_orders o ON c.id_customer = o.id_customer JOIN ps_address a ON o.id_address_delivery = a.id_address WHERE o.date_add BETWEEN '2024-01-01 00:00:00' AND '2024-12-31 23:59:59' GROUP BY c.id_customer, o.id_order ORDER BY o.date_add DESC; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now