Answers for "where do I find the price for a product in wordpress database"

SQL
1

woocommerce mysql price table

//for Regular Price
UPDATE wp_postmeta 
SET meta_value = diff_price_value 
WHERE post_id = variation_id AND meta_key = '_regular_price';

//for Price
UPDATE wp_postmeta 
SET meta_value = price_value 
WHERE post_id = variation_id AND meta_key = '_price';

//for Sale Price
UPDATE wp_postmeta 
SET meta_value = price_value 
WHERE post_id = variation_id AND meta_key = '_sale_price';
Posted by: Guest on July-07-2020

Code answers related to "where do I find the price for a product in wordpress database"

Code answers related to "SQL"

Browse Popular Code Answers by Language