So after a few attempts, I managed to change the price for variable products.
If someone needs to send my code:
UPDATE wp_postmeta
LEFT JOIN wp_posts ON wp_posts.id = wp_postmeta.post_id
LEFT JOIN wp_term_relationships ON wp_posts.post_parent = wp_term_relationships.object_id
SET
wp_postmeta.meta_value = wp_postmeta.meta_value*1.05
WHERE wp_posts.post_type="product_variation"
AND wp_postmeta.meta_key = '_regular_price'
AND wp_term_relationships.term_taxonomy_id = '2396'
Related Posts:
- 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
- get woocommerce product image url and price from database [closed]
- Update WooCommerce stock status with SQL query if stock value is greater than 0
- How to get products without tag?
- 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?
- Alter the cost of products using phpmyadmin sql query
- Woocommerce order_complete email dont send after changing order status via sql
- Use a woocommerce hook to create a table and populate it with a query
- Is it possible to extract all product columns except for one?
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How to disable Woocommerce password recovery and use the default WordPress password reset page?
- Limit users to one active subscription in WooCommerce Subscriptions? [closed]
- Display WooCommerce size product attribute on shop page
- WooCommerce add_to_cart() with custom price [closed]
- Declaring custom woocommerce product type as virtual / downloadable only [closed]
- How to remove_action inside class [duplicate]
- Redirect if current user is logged out and current page is /my-account
- WooCommerce HTML after short description if product is in specific category
- How to get total count for each star rating?
- Display a list subcategories under the main product category thumbnails?
- Unable to programmatically remove product from WooCommerce cart
- WooCommerce Apply Coupon to order AFTER taxes
- Rewriting Woocommerce Product Filters To URL Segments
- How to Change WooCommerce Variable product pricing by SKU or visible children id
- Is it possible to cache ?wc-ajax=get_variation
- echo product id and product_item_key in cart [closed]
- Redirect the single product page link to the shop page
- Is WooCommerce updates for WordPress necessary? [closed]
- How can I display *only* the child category of a product?
- How to implement Handling Fee like the Shipping on Cart and Checkout page on WooCommerce [closed]
- why featured product not updated in postmeta table in woocommerce?
- wooCommerce checkout page State / County (optional) validate not working
- How to display empty stars on products with woocommerce?
- WooCommerce limited role
- Skip WooCommerce 4.5.x onboarding with WP-CLI [closed]
- Automatically making a newly saved payment method default in WooCommerce
- WooCommerce update_shipping_method ajax call wipes shipping method set on non-checkout page [closed]
- Display FREE for $0 products in woocommerce ++++ [closed]
- How to add existing categories into a post using wp_insert_post
- create comment box in woo-commerce shop order [closed]
- Product variation attributes does not appear as it should in the cart – woocommerce [closed]
- Woocommerce: how to know if the customer is canceled the order or the shop owner? [closed]
- Add shipping address to Woocommerce order emails [closed]
- A function to add arguments to a taxonomy
- Different Templates for Woocommerce Parent and Child Sub Categories
- add sub subpage endpoint to woocommerce plugin my-account section
- how to change the “return to shop” button text? [closed]
- Problem while adding the variable product woocommerce
- How do I create a filter to hide the One Click Accessibility plugin button in WordPress?
- customers are not showing up in woocommerce
- Woocomerce Edit source code of form in wordpress
- Woocommerce : How to automatically input the same email for every order?
- Woocommerce – Change order of products in Confirmed Order
- echo product parent category
- How to edit wc_get_template_part for archive products
- Switch to user link shortcode
- Display WooCommerce product attribute on shop page
- How to get product category ID based on post?
- Jump to Footer On Scroll – Woocommerce Pages Phones Only
- WordPress Development Workflow
- Woocommerce redirection product_name -> product_cat/product_name
- Remove Stripe Woocommerce Credit Card Icons (and replace with image)
- How to add external product url to woocommerce from a metadata by function.php
- Unable to call woocommerce hook in my custom php file
- Custom account page that accepts a query parameter
- Custom WooCommerce template for product
- Checkout fr Woocommerce – load default WooCommerce checkout template on the fly
- Loop Through Current Woocommerce Product Categories Sub Categories
- How to save a Woocomerce metabox input as a metadata field
- populating extra field with woocommerce categories
- Woocommerce Shop Manager Capabilities
- customize src attribute in woocommerce single product image
- How to tell woocommerce slider to use thumbnails
- Add customer name to woocommerce email-header.php heading
- woocommerce sort by dropdown styling
- Mysql query – amount spent by customer
- Integration widget Mondial Relay Js
- Custom Registration Fields woocommerce
- How Do I Access Parameters Emitted by an Action?
- bulk media crop for featured images
- Users credentials and syncing from third party with WooCommerce
- WooCommerce set specific currency on site shop
- WooCommerce shop, my account, cart every page redirect to home page [closed]
- How to edit woocommerce checkout fields
- Include customer details in woocommerce 3rd part plugin email
- how to add a page to a plugin?
- Unable to get product category
- Membership website with discount on scheduled appointment
- Woocommerce: how to make only certain products shippable?
- Customer email notification upon order update in woocommerce
- How can i hide a specific class when cart subtotal is above a certain amount
- Update WooCommerce Short Description using SQL
- Bulk delete ‘Global Attributes’ in WooCommerce via WP-CLI?
- Checkout page not loading on my ecommerce website
- WooCommerce: expiring date for products (and on sale some days before)
- How to display woo commerce shipping_method on the product page
- Product data field for Woo Commerce is blank?