Update the tax status of all WooCommerce products.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Feb 21, 2020
Thanks, you have saved me a lot of work
Mar 31, 2020
Jun 29, 2020
how i am supposed to run this?
Jun 30, 2020
Kral adamsın :)
Aug 26, 2020
This looks like SQL, so you should run it in phpmyadmin or in you mysql console :)
Thanks bro !
Aug 26, 2020
Thanks for this query, flipped all rows in wp_wc_product_meta_lookup to taxable but the products kept saying it wasn't taxable. This query solved my issue, great!
Oct 22, 2020
Thanks! Found easily with a google search...
Oct 3, 2021
Dec 11, 2021
Jul 28, 2022
Thanks! Was looking to write this myself and find the columns but 1 search query and google showed me the correct thing.
P.s. for people who are using object cache, the reason it won't add the taxes until you visited the problem is because you have to clean the Cache. This could be Reddis object cache or other caching plugins!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This helped me thank you!