结帐时的 WooCommerce 条件产品字段
最近更新 2025年06月25日
资源编号 94826

结帐时的 WooCommerce 条件产品字段

售后服务丨一次搭建,终身售后!7*24小时,全天候技术支持!
购买建站套餐:送国际域名、服务器、SSL证书、PAYPAL等国际流行支付!:
39
VIP折扣
    折扣详情
  • 基础套餐

    39.00 元10折

  • 高级套餐

    39.00 元10折

  • 企业套餐

    39.00 元10折

  • 集团套餐

    39.00 元10折

购买建站套餐,不懂技术,不懂美工,也可以搭建优质外贸独立站!
购买主题 查看演示 建站套餐
详情介绍

WooCommerce 结帐时的条件产品字段插件允许您在结帐时显示其他产品字段!字段可以是 动态显示 根据逻辑规则……所有这些都使用一个漂亮的可视化编辑器完成!

现场演示

https://www.codecanyondemo.work/wcpfc/wp-admin
(Shop 管理员帐户)
用户:demo
通行证:演示

(客户账户)
用户:demo2
通行证:演示

文档

如何自动更新插件

要接收自动更新,只需安装并配置 Envato 更新程序插件:httpss://goo.gl/pkJS33 .说明如何配置它的官方指南可在以下链接中找到: httpss://envato.com/market-plugin 。

运作方式

该插件通过可视化编辑器允许创建额外的产品字段,这些字段将显示在 Checkout 页面上。每个字段都可以有自己的 条件规则 插件通过它来确定是否必须显示它。
条件规则可以考虑其他条件字段值或WooCommerce 本机结帐字段 值如下:

  1. 账单字段
  2. 发货字段
  3. 支付方式

最后但并非最不重要的一点是,每个字段都可以显示 一下 每笔订单 1 次每个产品或每个 1 次 产品购物车数量.

例子

例如,您可以:

  1. 创建一个字段,该字段仅在 Billing country (账单国家/地区) 为 Italy (意大利) 且 State/Province (省/省) 为 Rome 时显示
  2. 创建一个字段,该字段仅在 Payment method (付款方式) 为 PayPal 时显示
  3. 创建名为 “field1” 的文本字段后,您可以创建第二个字段,该字段仅在 “field1” 包含短语 “hello world” 时显示,依此类推!
  4. 创建日期字段 “field1” 后,您可以创建第二个字段,仅当 “field1” 的选定日期晚于 2018 年 12 月 25 日时,才会显示该字段

等等!

条件逻辑和动态场显示

每个字段可以有多个“和/或”条件规则,这些规则将使字段 动态 仅在满意时可见。条件规则可以与其他字段值或本机 billing/shipping checkout 字段关联。

注意: 对于其他自定义字段值,只能为具有相同显示策略位置 选项。

字段类型

该插件将允许商店管理员创建以下字段类型:

  1. 发短信
  2. 文本区域
  3. 电子邮件
  4. 选择/多选
  5. 日期
  6. 时间
  7. 国家和州
  8. HTML

对于每个字段,您可以配置自己的选项,例如要分配给输入字段的 CSS 类、占位符文本、在电子邮件上显示、在订单详细信息页面上显示、行大小等。

注意: 将显示 HTML 字段 在结帐页面上。它可用于直观地组织其他字段(例如,创建标题)。

根据产品/类别进行可见性

只能为所选产品或类别显示字段。如果未选择任何内容,插件将为购物车中的每个产品显示一个字段。选择一个类别,插件将为与所选类别匹配的每个产品显示一个字段。

显示策略

默认情况下,该插件将为每个匹配的产品显示一个字段。但是,您可以在以下选项中进行选择:

  1. 每个产品:对于匹配的产品,该字段将仅显示一次
  2. 每个购物车数量:对于匹配的产品,该字段将显示 N 次,其中 N 是购物车数量
  3. 一次:如果所选产品/类别中至少有一个与购物车中的当前产品/类别匹配,则仅一次。

位置

您可以选择字段的显示位置:在 billing 或 shipping forms 之后。

注意: 如果选择了发货表单,则将显示该字段
仅当运送到其他地址 选项。否则,WooCommerce 将不会显示发货单,然后该字段将不可见。

国家和州字段注释

只能选择在 WooCommerce -> 设置 -> 常规 菜单。

WPML 兼容性

如果检测到 WPML,插件将自动显示标签、占位符等的多语言输入字段。这样,您可以为每种语言输入不同的文本。

前端集成

如果满足相关的条件规则(如果有),其他字段将无缝集成到“账单/发货”表单中(如果是“一次性”字段类型)或之后(如果是“每个产品”或“每个购物车数量”字段类型)。 注意: 如果选择发货表格,将显示该字段
仅当运送到其他地址 选项。否则,WooCommerce 将不会显示发货单,然后该字段将不可见。

下订单后,如果必填字段、电子邮件格式错误或数值不在预选范围内,该插件还会显示一些验证消息

后端集成

其他字段将根据字段类型无缝集成到订单详细信息页面中。一次性字段在客户账单/发货详细信息下报告(根据字段位置),而 Product/Cart quantity 字段类型在他们引用的每个产品下报告。

有关更改的结帐表单的说明

如果您通过使用第三方插件添加/删除/自定义字段来以任何方式更改了结帐表单,这可能会干扰插件,导致其无法正常工作。确保使用默认的 WooCommerce 结帐模板 ([woocommerce_checkout])。

屏幕截图

Field configurator 页面
条件逻辑 – 字段配置器页面
结帐页面
订单详情页面
通知电子邮件

管理员订单详情页面

= 6.6 - 01.09.24 =
* Minor improvements

= 6.5 - 06.10.24 =
* Fixed an issue due the in the order details page was displayed a warning about an undefined ID

= 6.4 - 09.10.24 =
* Added option to execute shortcode present in the HTML fields

= 6.3 - 09.07.24 =
* Libraries update

= 6.2 - 30.08.23 =
* Added a new option to disable the "place order button" fade in effect

= 6.1 - 28.07.23 =
* Added compatibility with HPOS

= 6.0 - 14.07.23 =
* Minor CSS improvement

= 5.9 - 28.08.22 =
* Bugfix

= 5.8 - 10.08.22 =
* Fixed an issue related to the Order datails page

= 5.7 - 14.07.22 =
* Fixed an issue that prevented the field to be properly displayed when "shipping/billing country" conditions were used

= 5.6 - 25.02.22 =
* Fixed an issue due to time fields were not properly displayed on the admin order details page

= 5.5 - 18.10.21 =
* Bugfix

= 5.4 - 11.10.21 =
* Bugfix

= 5.3 - 27.07.21 =
* Code Redesign

= 5.2 - 02.03.21 =
* Bugfix

= 5.1 - 29.12.20 =
* Fixed an issue when using date fields, when excluding just one day, the fields were not properly rendered

= 5.0 - 08.09.20 =
* Minor improvement

= 4.9 - 20.08.20 =
* Fixed an issue related to the delete process

= 4.8 - 19.08.20 =
* Minor bugfix

= 4.7 - 18.08.20 =
* Fixed an issue related to the logic condition configurator

= 4.6 - 06.05.20 =
* Fixed an issue related to WPML

= 4.5 - 04.05.20 =
* Minor bugfix

= 4.4 - 02.04.20 =
* Fixed an issue with date display format

= 4.3 - 09.03.20 =
* Added option to disable specific day of the week for date selector

= 4.2 - 19.02.20 =
* Bugfix related to the date and time fields

= 4.1 - 08.02.20 =
* Fixed an issue due to field headers being displayed after the shipping form even if they should not

= 4.0 - 04.01.20 =
* Fixed an issue related to the relative max date option

= 3.9 - 12.11.19 =
* Fixed an issue related to WordPress 5.3 that may prevent field to be properly displayed on checkout and on the configuration page

= 3.8 - 07.11.19 =
* Fixed an issue related to the min/max date selection option for Date field

= 3.7 - 04.11.19 =
* Fixed an issue related to WPML field label translation on the Order details page

= 3.6 - 01.11.19 =
* Removed "billing" and "shipping" prefixes for "one time" field type

= 3.5 - 21.08.19 =
* Fixed an issue related to the checkout validation process for required fields

= 3.4 - 10.08.19 =
* Fixed an issue the "one time" field type mandatory option was ignored

= 3.3 - 31.07.19 =
* Unique id is now displayed in the field configuration panel

= 3.2 - 28.07.19 =
* Minor bugfix

= 3.1 - 16.07.19 =
* Fixed an issue related to mandatory fields and blank character

= 3.0 - 11.07.19 =
* Product selector now shows only published products

= 2.9 - 09.07.19 =
* Improved datepicker: is now possible to choose the number of years to show in the year selector

= 2.8 - 08.07.19 =
* Datepicker widget css improvement

= 2.7 - 27.06.19 =
* Fixed an issue with the logic operator option and the Country/state selector

= 2.6 - 11.06.19 =
* Is now possible to multiple select products and categories. The selection box won't close at first selection

= 2.5 - 23.04.19 =
* HTML field type added

= 2.4 - 23.04.19 =
* Minor bugfix

= 2.3 - 19.04.19 =
* Minor bugfix

= 2.2 - 10.01.19 =
* Minor bugfix

= 2.1 - 08.12.18 =
* Fields displayed according to product quantity are now visually grouped

= 2.0 - 26.11.18 =
* Fixed an issue due to fields were not displayed on checkout forms

= 1.9 - 21.11.18 =
* Fixed an issue due to using a virtual product the plugin crashed at the checkout page (thanks to 17seconds)

= 1.8 - 21.11.18 =
* Fixed an issue due to for Select field, the placeholder value was not properly displayed on the configuration menu

= 1.7 - 12.11.18 =
* Fixed an issue due to required fields being highlighted even if a value was still not inserted

= 1.6 - 08.11.18 =
* Fixed an incompability with Admin columns pro

= 1.5 - 08.11.18 =
* Fixed an issue that may raise 500 server error

= 1.4 - 08.11.18 =
* Fixed an issue due to admin Order preview was not working

= 1.3 - 18.10.18 =
* Added "Payment methods" to logic options

= 1.2 - 05.10.18 =
* Added new activation system: now the plugin can be only activated in two domains and they cannot be unregistered

= 1.1 - 07.09.18 =
* Fixed an issue with select fields and logic rules

= 1.0 - 05.09.18 =
* First release
打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)
常见问题

相关独立站主题

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务