this is the error that i get, when it has to safe two different products....in the store details:
INSERT INTO orderdetails (`n_pedido`, `nombre_producto`, `precio_producto`, `unidades`, `peso`, `totalPrecio`, `sku`, `prodID`, `clienteID`) VALUES ('PE-200922214500-5', 'Filetes de sardina', 5, 11, 120, 75, '0002', 2, 5)
Duplicate entry 'PE-200922214500-5' for key 'n_pedido'