Quantcast
Channel: WooCommerce prices location in DB - WordPress Development Stack Exchange
Browsing latest articles
Browse All 5 View Live

Answer by Albert S. for WooCommerce prices location in DB

This prints product title and it's price. SELECT distinct p.id, p.post_title,pm.meta_key, pm.meta_value FROM {db_prefix}_postmeta pm inner join {db_prefix}_posts p on p.id= pm.post_idWHERE pm.meta_key...

View Article


Answer by Umair Idrees for WooCommerce prices location in DB

Ηere are three meta_keys in postmeta table.[ _sale_price, _regular_price, _price ]First array contains value and second array contains WHERE condition. You can add more conditions.You can update values...

View Article

Answer by Marcel Lange for WooCommerce prices location in DB

As LoicTheAztec told, the product data lives in the posts and postmeta tables. Here is a query, I used to get the prices in my environment (WC Role Based Price installed)SELECT wpp.ID, wppm.meta_key AS...

View Article

Answer by LoicTheAztec for WooCommerce prices location in DB

All the data like different prices of a product custom post type are store (for each product) in postmeta table. To find the post id of all products you have to use this query on posts table:SELECT *...

View Article

WooCommerce prices location in DB

I'm looking for the location of a product's prices according to the option which the user selects in the product price. For example, this WooCommerce shop has a select which prices change according to...

View Article

Browsing latest articles
Browse All 5 View Live