ivanoman Posted December 20, 2025 Share Posted December 20, 2025 Buongiorno a tutti, Sono passato alla versione di PS 9.1 e ho notato che nella pagina carrelli della spesa appaiono records che apparentemente nessuno crea. Qualcuno ha notato questa cosa ? E' normale o c'è un modo per evirate. Grazie Link to comment Share on other sites More sharing options...
ivanoman Posted December 24, 2025 Author Share Posted December 24, 2025 Avrei pensato a questo script per pulire i carrelli orfani : Quote DELETE c, cp FROM xxxx_cart c LEFT JOIN xxx_orders o ON o.id_cart = c.id_cart LEFT JOIN xxx_cart_product cp ON cp.id_cart = c.id_cart WHERE o.id_cart IS NULL AND c.date_add < NOW() - INTERVAL 30 DAY; Cosa ne pensate? Link to comment Share on other sites More sharing options...
Fabry Posted January 15 Share Posted January 15 Ciao..rispondo un pó in ritardo:-) questo problema é con tutte le versioni, ho degli shop che sono bombardati dai carrelli fatti dai bot. Soluzione migliore secondo me é dotarsi di un moduletto con tanto di cron dove puoi cancellare per es tutti i carrelli a partire da 7 giorni. Ci sono parecchi moduli lá fuori..io ne ho uno con tanto di cron ma non gira sulla 9... cerca sul net e sugli addons e vedrai che escono fuori:-)...non andrei di queries perché il rischio di sfasciare il db é grande se sbagli qualcosa. ciao Link to comment Share on other sites More sharing options...
ivanoman Posted January 15 Author Share Posted January 15 Ciao @Fabry Grazie per il suggerimento. Con l'sql che ho preparafo funziona. Penso che costruirò un modulo. 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