Hola Ventura,
Muchas gracias por tu respuesta, me ha servido de mucho.
Yo añadiría además que para resetear contadores de pedidos facturas, etc... Habría que poner el AUTOINCREMENT de aquellas tablas que lo tengan a 1.
Del listado que has puesto solo una no tiene AUTO_INCREMENT: ps_order_invoice_payment
Lo que hice yo (previa copia de la Base de Datos) fue:
En phpMyAdmin, en la pestaña SQL escribí:
BEGIN;
TRUNCATE TABLE ps_orders;
ALTER TABLE ps_orders AUTO_INCREMENT=1;
TRUNCATE TABLE ps_customer_thread;
ALTER TABLE ps_customer_thread AUTO_INCREMENT=1;
TRUNCATE TABLE ps_order_carrier;
ALTER TABLE ps_order_carrier AUTO_INCREMENT=1;
TRUNCATE TABLE ps_order_cart_rule;
ALTER TABLE ps_order_cart_rule AUTO_INCREMENT=1;
TRUNCATE TABLE ps_order_detail;
ALTER TABLE ps_order_detail AUTO_INCREMENT=1;
TRUNCATE TABLE ps_order_history;
ALTER TABLE ps_order_history AUTO_INCREMENT=1;
TRUNCATE TABLE ps_order_invoice;
ALTER TABLE ps_order_invoice AUTO_INCREMENT=1;
TRUNCATE TABLE ps_order_invoice_payment;
TRUNCATE TABLE ps_order_return;
ALTER TABLE ps_order_return AUTO_INCREMENT=1;
TRUNCATE TABLE ps_order_slip;
ALTER TABLE ps_order_slip AUTO_INCREMENT=1;
TRUNCATE TABLE ps_stock_mvt;
ALTER TABLE ps_stock_mvt AUTO_INCREMENT=1;
TRUNCATE TABLE ps_cart;
ALTER TABLE ps_cart AUTO_INCREMENT=1;
TRUNCATE TABLE ps_cart_cart_rule;
ALTER TABLE ps_cart_cart_rule AUTO_INCREMENT=1;
TRUNCATE TABLE ps_cart_product;
ALTER TABLE ps_cart_product AUTO_INCREMENT=1;
TRUNCATE TABLE ps_customization;
ALTER TABLE ps_customization AUTO_INCREMENT=1;
TRUNCATE TABLE ps_message;
ALTER TABLE ps_message AUTO_INCREMENT=1;
TRUNCATE TABLE ps_specific_price;
ALTER TABLE ps_specific_price AUTO_INCREMENT=1;
COMMIT;
De esta forma me trunca todas las tablas a la vez y me reinicia el contador de todas a 1.
Saludos