I’m creating a website using WooCommerce and I want to restrict the available products to users depending on the postcode that they enter in the search form on my home page.
To be able to achieve that I’ll have to specify the conditions of each product within the database in phpMyAdmin, but I can’t seem to find it.
Does anybody know where the woocommerce database for products and/or categories are within phpmyAdmin?
Thank you in advance.
Products are located mainly in the following tables:
post_idas relational index (the product ID).
product_idas relational index (the post ID) | Allow fast queries on specific product data (since WooCommerce 3.7)
product_idas relational index (the post ID) | Allow fast queries to retrieve products on orders (since WooCommerce 3.7)
Product types, categories, subcategories, tags, attributes and all other custom taxonomies are located in the following tables:
object_idas relational index (the product ID)
wp_woocommerce_attribute_taxonomies(for product attributes only)
wp_wc_category_lookup(for product categories hierarchy only since WooCommerce 3.7)
Product types are handled by custom taxonomy
product_type with the following default terms:
Some other product types for Subscriptions and Bookings plugins:
Since Woocommerce 3+ a new custom taxonomy named
- The product visibility with the terms
- The feature products with the term
- The stock status with the term
- The rating system with terms from
Particular feature: Each product attribute is a custom taxonomy…