WordPress – How to update pm_virtual.meta_value = 'no' in Woocommerce
I need to update the value of pm_virtual.meta_value = 'no', only for those products that have pm_downloadable.meta_value = 'yes'. How do I do this? SELECT p.ID, p.post_title, pm_downloadable.meta_value AS downloadable_trait, pm_virtual.meta_value AS virtual_trait FROM xhdps_posts AS p INNER JOIN xhdps_postmeta…