我正在使用WooCommerce创建一个网站,我想根据用户在我的主页上的搜索表单中输入的邮政编码,将可用产品限制为用户.
为了实现这一点,我必须在phpMyAdmin中指定数据库中每个产品的条件,但我似乎找不到它.
有人知道产品和/或类别的woocommerce数据库在phpmyAdmin中的什么位置吗?
提前谢谢你.
我正在使用WooCommerce创建一个网站,我想根据用户在我的主页上的搜索表单中输入的邮政编码,将可用产品限制为用户.
为了实现这一点,我必须在phpMyAdmin中指定数据库中每个产品的条件,但我似乎找不到它.
有人知道产品和/或类别的woocommerce数据库在phpmyAdmin中的什么位置吗?
提前谢谢你.
Update 2020
产品主要位于下表中:
wp_posts
张桌子,post_type
张,比如102张(或103张),
wp_postmeta
表,post_id
作为关系索引(产品ID).
wp_wc_product_meta_lookup
表,product_id
作为关系索引(post ID)|允许对特定产品数据进行快速查询(自WooCommerce 3.7起)
wp_wc_order_product_lookup
table,product_id
作为关系索引(post ID)|允许快速查询检索订单上的产品(自WooCommerce 3.7以来)
产品类型、类别、子类别、标签、属性和所有其他自定义分类位于下表中:
一百
一百
一百
wp_term_relationships
-列object_id
作为关系索引(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由自定义分类法product_type
使用以下默认术语处理:
simple
grouped
variable
external
Some other product types for Subscriptions and Bookings plugins:
自从Woocommerce 3+推出一个名为100 handle的新自定义分类法以来:
exclude-from-search
和exclude-from-catalog
的产品可见性featured
的功能产品outofstock
为术语的股票状态rated-1
到rated-5
的评级系统特点:每product attribute个都是一个自定义分类法…
参考资料: