You shouldn’t use a SQL query. You can do this programatically.
$price = get_post_meta( $product_id, '_price');
$price += 100; // use -= 100 to subtract
update_post_meta($product_id, '_price', $price);
update_post_meta($product_id, '_regular_price', $price);
Related Posts:
- Get url of product’s images (woocommerce)
- Share users and WooCommerce memberships between two installations
- Is it safe to delete from db orphaned posts i.e. whose post_parent no longer exists?
- Where is the “default attribute” values located in the phpMyAdmin in Woocommerce?
- Get WooCommerce product attribute taxonomies in a SQL query on WordPress database
- How to get all products from an order including variations via SQL query?
- How to Order by random on a SQL query
- How to select from two different tables to display orders list with custom column from other table
- Is it safe to have 2 mysql users?
- Should I use docker in wordpress production?
- get woocommerce product image url and price from database [closed]
- Help me to intergrate product database to WordPress
- Undo WooCommerce CSV import
- WordPress Development Workflow
- Deleted products from woocommerce are still in the database
- Update WooCommerce stock status with SQL query if stock value is greater than 0
- How to get products without tag?
- Woocommerce change the price of products in the database
- Query product’s image path by category WooCommerce database?
- How to speed up “My Account > Orders Page” on Site with More than 200,000 orders?
- Does WP-WooC support filters at database?
- WooCommerce database upgrade behaviour
- Woocommerce order_complete email dont send after changing order status via sql
- PHP Warning: Error while sending QUERY packet
- Use a woocommerce hook to create a table and populate it with a query
- Woocommerce permalink URL change in DB
- how to get woocommerce product attribute slug
- How to display product price of the product in loop
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- How do I add a text input field for customers to leave a note on a single WooCommerce product page?
- Add Admin User via SQL
- Auto update cart after quantity change
- paypal not showing on woocommerce payments
- Target WooCommerce Product Gallery Image (rather than Featured Image) for og:image
- Save and display selected product option and cost as cart item data in WooCommerce
- How to remove product base from WooCommerce product permalinks
- woocommerce image product add a class and data-src attributes
- Woo create order only after payment done
- Change Category Widget Dropdown List Select Name
- Remove the link from the thumbnail and product title on woocommerce
- Delete transients in website
- WooCommerce – Multiple meta query not working
- Bulk-create posts from SQL database
- How to display the result of a custom metabox in the frontend [closed]
- Quantity on the product card and subtotal disappear [closed]
- Admin access for custom user capabilities
- Display product category taxonomy terms in WooCommerce shop loop
- how to show store name when I add a product on cart in woocommerce(woocommerce multi store)?
- When Free shipping is available hide other shipping methods except Local pickup in WooCommerce [closed]
- Woocommerce Moving Review Below add to cart breaks button
- WP All Import manual Cron
- Refund from wooCommerce with stripe [closed]
- WooCommerce Hook: Content get’s displayed twice and not AFTER the order total
- Have I got this IF Statement correct?
- Setting an attribute as variation in woo commerce via php [duplicate]
- How to remove unwanted text bug in wordpress site
- Trying to style Woocommerce sidebar Cart Widget [closed]
- Cancelled orders move to Trash automatically in Woocommerce – how to disable?
- Adding Field in WooCommerce
- Woocommerce Sort by default variation price
- Add Name and SKU Main Product to Secondary Product to Cart
- How can i access woocommerce order variables inside shortcode?
- Conditional logic – if product has a parent category, echo this
- WooCommerce set default product sort to product description (content) [closed]
- Custom action not working in Woocommerce
- Woocommerce variable product’s total amount by javascript
- Prices showed without decimals separator on BACKEND. Weight/price not working on Wocommerce
- add the attribute value above the english product title
- Save product short description in order (without updating in order details if it is updated in product)
- Can I create categories or attribute contain more than 70,000?
- Format decimals of get_price_html
- Combine one action and one filter
- How to run code when cookie is added?
- Return product list based on current product attribute
- Applying pre-production modifications
- WooCommerce – Remove automaticly added membership product if user remove regular product from cart
- Temporary access to page with URL sent to email
- Use woocomerce shop filters on other pages
- Product related to post by title
- How do you programatically add a booking item to the cart?
- WooCommerce does not translate every string
- Woocommerce add a text field if specific option is selected
- Add suffix to price html does not work
- Get user active posts randomly
- How Fragile Is DB if I Upload Completely Updated Files
- Broken 302 redirection for product subcategory (Woocommerce, Apache)
- Website Tablet Check Out Field Issue
- WooCommerce order created via REST – sending the date_created along
- How to allow registration only from a certain location?
- Add confirmation popup on place order button
- Get Third Level Categories WooCommerce
- can’t delete a row from post_meta table
- Change WooCommerce Checkout Button – Reverts to normal
- Show pop up message for specific categoryies
- How to remove content from hacked pages? [closed]
- Disable WooCommerce Address State Dropdown
- How to show detailed order history on woocommerce product page [closed]
- Critical error on woocommerce checkout page
- Can’t add variable products since update WooCommerce [closed]
- Add custom ID to WooCommerce product tab