跳到内容

PSBDx Custom Product Fields

v1.2.0

PSBDx · 2026年5月22日 上架

Add custom product fields to WooCommerce products, validate user input, and optionally increase product price based on number field values.

正在使用
10 以下
评分
暂无
累计下载
409
最近更新
2026年7月12日
需要 WordPress 5.8+已测试到 7.0.9PHP 7.4+

截图

The Custom Product Fields meta box on the backend product edit screen. Frontend view showing the custom fields on a single product page.
The Custom Product Fields meta box on the backend product edit screen. Frontend view showing the custom fields on a single product page.
Custom field values carried over successfully into the Cart and Checkout pages.
Custom field values carried over successfully into the Cart and Checkout pages.
Viewing and editing the captured customer inputs directly on the WooCommerce Order screen.
Viewing and editing the captured customer inputs directly on the WooCommerce Order screen.
PSBDx Custom Product Fields

PSBDx Custom Product Fields adds dynamic custom fields to WooCommerce product pages and seamlessly carries the submitted values through the cart, checkout, and order screens.
Core capabilities:
* Add multiple field types: text, textarea, number, email, mobile, website URL, date, dropdown, radio, and checkbox.
* Mark fields as required and define custom error messages per field.
* Increase product price dynamically using the Price Per Unit setting on Number fields.
* Allow decimal (point) values in Number fields with the Allow Decimals setting.
* Edit captured field values directly from the Admin order screen (works with both classic and High-Performance Order Storage).
* Conflict-safe runtime guard: pauses plugin execution and shows admin notices when conflicts are detected.
* Full WordPress Multisite compatibility with network activation support.
* Includes extensive developer hooks for custom integrations.
For complete details, advanced setups, and guides, please visit our official documentation: https://dev.psbdx.xyz/documentations/psbdx-custom-product-fields/

Compatibility Warning

If a custom plugin or theme fully replaces the standard WooCommerce product, cart, checkout, or order creation flow (instead of using standard WooCommerce hooks), this plugin may not be able to capture field data or apply price adjustments.
Possible impacts of custom overrides:
* Custom field values may not be saved into cart/order item meta.
* Pricing field adjustments may not be added to line item totals.

Solution Hooks (For Custom Checkout/Flow Integrations)

If your checkout flow is highly customized, you can use these developer hooks to pass data through your own pipeline.

Plugin filters/actions:

  • psbdx_cpf_product_fields – Filter field definitions before display/validation.
  • psbdx_cpf_required_message – Customize required field message output.
  • psbdx_cpf_cart_item_data – Inject/adjust cart item data before WooCommerce stores it.
  • psbdx_cpf_adjusted_cart_price – Control the final adjusted price for cart items.
  • psbdx_cpf_after_validation – Run custom logic after field validation.
  • psbdx_cpf_loaded – Fire integration bootstrapping after plugin init.
    WooCommerce hook points commonly used for compatibility:
  • woocommerce_add_cart_item_data
  • woocommerce_get_item_data
  • woocommerce_before_calculate_totals
  • woocommerce_checkout_create_order_line_item
    For advanced implementation examples, please check the documentation:
    https://dev.psbdx.xyz/documentations/psbdx-custom-product-fields/

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums