jazzman/wc-product-tables
Composer 安装命令:
composer require jazzman/wc-product-tables
包简介
WooCommerce product tables feature plugin
README 文档
README
This is the development repository for our feature plugin to replace WooCommerce product meta data with custom tables. This feature plugin is currently only available on GitHub, but will move to WordPress.org when more stable.
Since we implemented CRUD objects in WooCommerce core, our plan has been to use that abstraction to change core data structures for performance reasons. This project brings about those changes.
Data stucture
This plugin creates dedicated tables for WooCommerce data.
wc_products- Stores product data such as price, stock, and type. This replaces meta data. Products are linked to POSTS by ID still so some backwards compatibility is maintained.wc_product_attributes- Stores attributes assigned to products. This includes custom attributes, and global attributes (taxonomies).wc_product_attribute_values- Store attribute terms/values assigned to products.wc_product_downloads- Stores downloadable files assigned to downloadable products.wc_product_relationships- Lookup table to map images, grouped products, upsells, and other relations between products by ID.wc_product_variation_attribute_values- Specifically for variations, this stores the attribute value assigned to a variation. e.g. Color = blue.
Compatibility
With data moving to custom tables, WordPress based functions which query data directly will ultimately not be compatible with this new way of doing things. This is why the CRUD was implemented first to act as a method of abstraction.
A basic compatibility layer will map meta data to custom tables if legacy plugins try to do that, however, this can only work so far. Things such as direct SQL queries, or using WP_Query without going through WooCommerce may no longer be compatible.
In terms of data, we aim to have both on the fly and bulk migration of data into the new structures.
Get involved
This project is a large undertaking, and we believe it to be a neccessary one. This project should serve as a template for other objects in WooCommerce and pave the way for a truly performant plugin.
jazzman/wc-product-tables 适用场景与选型建议
jazzman/wc-product-tables 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 jazzman/wc-product-tables 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jazzman/wc-product-tables 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2019-03-13