Created
August 5, 2022 00:15
-
-
Save baiano/75fa5210fdc71c00aaf2866b3a6c36aa to your computer and use it in GitHub Desktop.
Increase price of products woocommerce
This file contains hidden or 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
-- 10% | |
UPDATE wp_postmeta | |
SET meta_value = ROUND(meta_value * 1.10, 2) | |
WHERE meta_key = '_price'; | |
UPDATE wp_postmeta | |
SET meta_value = ROUND(meta_value * 1.10, 2) | |
WHERE meta_key = '_regular_price'; | |
UPDATE wp_postmeta | |
SET meta_value = ROUND(meta_value * 1.10, 2) | |
WHERE meta_key = '_sale_price' AND meta_value != ''; | |
DELETE FROM `wp_options` | |
WHERE (`option_name` LIKE '_transient_wc_var_prices_%' | |
OR `option_name` LIKE '_transient_timeout_wc_var_prices_%'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment