My Blog
Find duplicate woocommerce product titles with mysql command
Find duplicate woocommerce product titles with mysql command to avoid problems and immediate fixes.
Especially if you want to work with services like skroutz.gr this command is your salvation.
Login to your phpmyadmin, select your database, go to the sql code and run the following command:
SELECT a.ID, a.post_title, a.post_type, a.post_status FROM wp_posts AS a INNER JOIN ( SELECT post_title, MIN( id ) AS min_id FROM wp_posts WHERE post_type = 'product' AND post_status = 'publish' GROUP BY post_title HAVING COUNT( * ) > 1 ) AS b ON b.post_title = a.post_title AND b.min_id <> a.id AND a.post_type = 'product' AND a.post_status = 'publish'
This post is also available in: Ελληνικά