Hello Every one so yes, im a total noob, i have access to my DB thru SSH and the database tool in prestashop 1.7.5 I would like to export and be able to filter my customers and import again the clean list. the idea is to remove all customers that did not order at least twice. i have no idea how to export with those parameters. anyone will be kind enought to point me in the right direction ?
Why not just run a query to delete all customers where the order count is less than 2? and surely you have phpMyAdmin supplied by your host?
Hi, thanks for the fast answer, i dont have phpmyadmin all is done via ssh, with is not a big issue for me till now. Why not just run a query to delete all customers where the order count is less than 2? >> this sound like a great idea ! how do i do that ?
Hi , i still need help with this please @sarahk so far i got select id_customer, count( * ) from ps_orders group by id_customer order by count( * ) DESC ; but that is giving me all order attempts, i want to do your suggestion can you help with that ?
I've been thinking... rather than doing one fancy query which could mess up if there was a typo do it in steps. select `id_customer`, count(`id_customer`) as `order_count` from `ps_orders` group by `id_customer` order by `order_count` DESC having `order_count` < 2 ; chuck the results into a spreadsheet create a column with a formula like this: ="delete from `ps_customers` where `id` = " + A1 + ";" paste those commands back into the database all much easier if you can use phpMyAdmin, SqlYog, TeamSQL or something similar. A database without a decent interface is like going back to the '90s