WooCommerce 角色-O-Matic
最近更新 2025年06月25日
资源编号 94822

WooCommerce 角色-O-Matic

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

    30.00 元10折

  • 高级套餐

    30.00 元10折

  • 企业套餐

    30.00 元10折

  • 集团套餐

    30.00 元10折

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

WooCommerce Role-O-Matic 插件 (WCRA) 是一个强大的工具,它允许商店管理员创建“分配规则”,根据 在配置的时间段内花费的金额 或根据购买的产品.
这个工具非常有用,因为可以与 WooCommerce 定价! (或任何第三方插件)以根据分配的角色分配动态价格或折扣。

现场演示

https://www.codecanyondemo.work/wcra/wp-admin
用户:demo
通行证:演示

用户:demo2
通行证:演示

用户:Demo3
通行证:演示

如何自动更新插件

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

如何运作

这非常简单。安装并激活后,新的“WooCommerce Role-O-Matic”语音将出现在主菜单中,商店管理员可以从中访问
金额配置器产品配置器 可通过菜单配置 “角色分配规则” 。

通过 金额配置器 可以定义规则,通过这些规则可以根据花费的金额 (不含税
根据用户角色、最低花费金额(以及可选的最大花费金额)和产品/类别限制。
每次客户下订单或商店管理员保存订单或更改订单状态(使用 WC_Order 方法或管理员区域)时,插件都会检查是否存在任何与当前时间和花费金额匹配的“金额角色规则”应用于客户。选择
每个规则分配都可以推迟指定必须进行角色分配的另一个日期。

通过 产品配置器 可以根据购买的产品分配角色。下订单后,将向客户分配与所购买产品关联的规则。此外,还可以配置有效期、产品 pruchase 限制等。
这对于管理订阅计划非常有用。

金额配置器 – 分配规则

使用 Amounts Configurator 菜单,可以使用以下选项创建分配规则:

  1. 规则名称: 用于标识规则
  2. 时间段类型: 固定时间段(您可以定义多个日期)或动态(定义时间跨度,如“过去 6 个月”或“过去 24 小时”)
  3. 日期(如果选择了固定时间段): 您可以配置多个日期,用于计算金额,在此期间将分配所选角色
  4. 有效计算日期: 如果要在延迟日期中分配角色,则此选项非常有用。例如,您可以使用 Febraury 支出数据在 6 月期间分配特殊角色
  5. 时间范围跨度(如果选择了动态时间段): 时间范围从“现在”(其中现在是用户访问站点的时刻)开始,用于订单检索以计算花费的金额。在此期间,如果检测到规则匹配,则将应用选定的角色
  6. 时间类型(如果选择了动态时间段): 它可以是分钟/小时/天/月/年
  7. 角色限制: 您可以选择应用客户是否已拥有一个或多个角色的规则。
  8. 产品/类别限制: 仅当客户在所选产品/类别中花费了 desided 金额范围时,您才能选择应用规则。
  9. 最小/最高金额: 这些是最小/最大支出金额值 (不含税),客户必须在配置的时间段内支出。如果是这样,将分配所选角色(在下一步中)。
  10. 要分配的角色(1): 如果在配置的期间内花费了金额,则要分配给客户的角色。
  11. 角色删除: 如果用户已经有一个要分配的角色,但他在此期间没有花费配置的数量,则角色将被删除。

(1)在创建规则之前,必须创建角色。要创建角色,请使用 嵌入式角色编辑器 或任何其他第三方插件。

产品配置器 – 分配规则

使用产品配置器,商店管理员可以轻松地将一个或多个用户角色与产品关联。因此,将购买这些产品的客户将被分配关联的角色。这对于管理基于角色的订阅计划可能很有用。

(可选)商店管理员还可以设置到期日期,一旦达到该日期,将触发用户角色删除。到期日期可以是 相对固定.
第一个是相对于购买时间的,这意味着到期时间可能是例如购买 1 个月后。第二个是固定日期,如“2016 年 3 月 2 日”。

此外,如果当前客户已经拥有所选角色,您还可以限制产品采购。如果有效期尚未达到,您也可以拒绝重新购买产品。

角色将根据购买日期和到期日期自动分配和删除。购买日期是下达标记为允许状态之一的最新订单(按日期而不是按 id)的日期。

例: 如果将 “Processing” 和 “Completed” 设置为 Allow 状态,并且
用户下单时的默认状态为 “Payment Pending”,只有在订单标记为 “Processing” 或 “completed” 后才会分配购买时间和角色。
注意: 更改最新订单日期将自动更新具有关联角色的订单项目的购买日期。
您可以通过 常规选项 菜单。

有效期延长: 该插件允许商店管理员让客户重新购买或不购买产品。这样,如果 e 相对有效期与产品相关联,则在下订单后
购买日期将更新为已下订单的日期。

简码: 要让买家知道他们的商品何时到期,您可以添加[wcra_show_expiring_dates] shortcode 的它将显示产品的到期日期
对于当前用户。

自动角色重新计算

该插件提供了定期自动重新计算角色(仅适用于“角色数量规则”)的能力。商店管理员在常规选项菜单中必须启用此选项并选择时间间隔(例如:每 2 小时、每 7 天等)和开始时间,插件将根据重新计算用户角色
到现有的规则!
当客户访问站点时,系统也会自动重新计算基于产品的用户角色。

注意: 您可以设置计算过程中考虑的允许订单状态,方法是常规选项 菜单。

Role Re-Calculator 工具

默认情况下,在客户下订单后、在管理页面中编辑其订单之一、更新其订单状态之一后(使用 WC_Order 方法或管理区域)或在重新计算计划期间,会检查角色分配规则。
如果商店管理员希望不等待计算机角色(仅适用于 “角色金额规则”) ,
他可以使用 “Roles re-calculator”。他只需点击“Roles re-calculator”菜单语音,然后点击“Recompute”按钮,插件就会完成剩下的工作。就这么简单!

注意: 您可以设置计算过程中考虑的允许订单状态,方法是常规选项 菜单。

关于角色重新计算方法的说明

WordPress 和 Woocommerce 没有真正的调度程序。因此,插件将在每次用户访问站点时或根据
自动角色重新计算 选项,可通过常规选项 菜单。
此方法使用本机wp_schedule_event method (https://codex.wordpress.org/Function_Reference/wp_schedule_event ).schedule 事件作仅在有人
如果计划的时间已过,则访问您的 WordPress 网站。因此,该角色可能会在计划日期之后的某个时间被删除/分配。

嵌入式角色编辑器

WCRA 插件有一个内置的角色编辑器,允许商店管理员轻松创建新角色或删除旧角色或未使用的角色。角色可用于分配特殊折扣
或使用 WooCommerce 定价! 或任何第三方插件。

密切关注当前分配的角色和下一个可实现的角色!

该插件会自动向用户的 My Account 页面的 Dashboard 选项卡上添加两个新部分,帮助用户了解哪个角色具有哪些角色以及哪些角色是可实现的
在当前期间。该插件显示他花了多少钱,错过了多少以及结束日期!
这两个部分都可以通过插件选项菜单禁用。 注意: 我的帐户页面信息显示仅适用于 WooCommerce 2.6 及更高版本。

短代码
想要在自定义页面中显示这些部分?没关系!
使用 [wcra_current_roles][wcra_next_roles_list] 您可以在支持简码系统的每个页面中显示每个部分!

注意: 使用特殊参数roles_to_not_show 您可以避免在 Role 列表中显示 Desidered 角色。例:[wcra_current_roles roles_to_not_show=“role_code1,role_code2”]

有关角色分配的电子邮件通知

按花费金额划分的角色 规则 您可以选择为每个配置的规则配置通知电子邮件!通过这种方式,您可以向用户提供一些反馈!

金额配置器 – 规则分配示例

是否要为在春季期间消费至少 100 的所有客户分配一个特殊的“2016 年春季高级用户”角色?很简单:

  1. 创建新规则并分配名称/ID
  2. 时间段类型: 固定
  3. 创建新日期,其中 (3):
    1. 开始日期: 2016/03/20
    2. 结束日期 21/06/2016
    3. 是否要计算不同期间的角色分配?: 否 (4)
  4. 角色限制:保持未选中状态
  5. 数量: 100
  6. Max Amount: 留空
  7. 角色删除:是 (2)
  8. 要分配的角色:“Premium 用户 2016 年春季”(1)

是否要为当月至少消费 100 的所有客户分配一个特殊的“Month premium users”角色?您是否愿意申请
此特别优惠仅适用于今年的前 3 个月?给你:

  1. 创建新规则并分配名称/ID
  2. 时间段类型: 固定
  3. 创建新日期,其中 (3):
    1. 开始日期: 01/01/2016
    2. 结束日期: 29/06/2016
    3. 是否要计算不同期间的角色分配?: 否
    1. 开始日期: 01/02/2016
    2. 结束日期: 28/02/2016
    3. 是否要计算不同期间的角色分配?: 否
    1. 开始日期: 01/03/2016
    2. 结束日期: 31/03/2016
    3. 是否要计算不同期间的角色分配?: 否
  4. 角色限制:保持未选中状态
  5. 数量: 100
  6. Max Amount: 留空
  7. 要分配的角色:“月高级用户”(1)

(1) 在创建规则之前,必须先创建角色。要创建角色,请使用 嵌入式角色编辑器 或任何其他第三方插件。
(2) 分配/删除角色是在客户下订单时、在管理页面上保存订单后、订单状态更新后(使用 WC_Order 方法)以及在计划期间计算的。
如果这些事件都没有发生,则必须使用 角色重新计算器 在月初(或您发牢骚时)以便
删除角色。
(3) 开始时间大于 “now” 的日期规则将被忽略。
(4) 如果设置为 yes,则使用 “spring data” 将角色分配更改为不同的日期。例如,这个任务可以在另一个季节完成(例如:9 月)。

WooCommerce 订阅

该插件支持由 Prospress 的 WooCommerce Subscriptions 插件触发的以下作

  1. wcs_renewal_order_created :续订订单时触发
  2. wcs_resubscribe_order_created :创建重新订阅订单以记录客户重新订阅过期或已取消的订阅时触发

当它们被触发时,插件会根据与订单关联的已购买/续订项目重新执行角色分配。

WPML

该插件适用于使用 WPML 制作的翻译产品,没有任何问题。但请注意,通知电子邮件(product-roles 和 amount-roles)主题和正文不能为
目标语言。

配套插件:WOOCOMMERCE 定价!

您想为 WooCommerce Role-O-Matic 插件使用的角色分配自定义价格或折扣吗?您可以!
WooCommerce 定价 就是您所需要的!试一试!

WooCommerce Role-O-Matic 屏幕截图

当前角色列表和下一个可实现的角色在 My account 页面上列出(可选)

产品配置器

[wcra_show_expiring_dates] ShotCode 的实际应用

用户管理员配置文件上的购买日期

更改日志

= 9.0 - 19.07.24 =
* Added support to HPOS

= 8.9 - 10.03.22 =
* Fixed an issue related to the "Rule application policy" (roles per purchased product) option

= 8.8 - 17.01.22 =
* Fixed an issue due to when an order was placed, the customer role was not properly set

= 8.7 - 03.12.21 =
* Improved email notification system

= 8.6 - 18.11.21 =
* Trashed orders are now excluded from computations

= 8.5 - 27.10.21 =
* Minor improvements

= 8.4 - 13.01.21 =
* Fixed an issue with WooCommerce 4.9

= 8.3 - 14.09.20 =
* Improved role computation process

= 8.2 - 14.08.20 =
* Added option to manually exclude users from the role recomputation

= 8.1 - 06.08.20 =
* Fixed an issue related to chinese character and role names

= 8.0 - 27.07.20 =
* Fixed an issue due to the "role per product" rules were not applied when using categories

= 7.9 - 19.02.20 =
* Minor improvements to the scheduler subcomponent

= 7.8 - 07.11.19 =
* Internal libraries update

= 7.7 - 25.07.19 =
* Minor bugfix

= 7.6 - 25.07.19 =
* Bugfix to the Cron component

= 7.5 - 05.07.19 =
* Minor CSS improvement

= 7.4 - 04.07.19 =
* Fixed an issue related to the automatic role re-comptator

= 7.3 - 03.07.19 =
* Fixed an issue related to the automatic role re-comptator

= 7.2 - 02.07.19 =
* Minor issue related to the role re-computer tool

= 7.1 - 01.07.19 =
* Min/Max amount now can use two digits for decimals

= 7.0 - 27.06.19 =
* Fixed an issue related to order fees

= 6.9 - 26.06.19 =
* Minor bug fix related to the dynamic date computation

= 6.8 - 25.06.19 =
* Fixed an issue related to the date reported using the [wcra_next_roles_list] shortcode

= 6.7 - 15.06.19 =
* Fixed an issue related to "Role by product" rules by which in some conditions, roles were not properly applied

= 6.6 - 10.06.19 =
* Minor bugfix

= 6.5 - 05.06.19 =
* Internal libraries update

= 6.4 - 15.05.19 =
* Internal libraries update

= 6.3 - 21.04.19 =
* Minor bugfix

= 6.2 - 01.04.19 =
* Minor bug fix on admin user details page

= 6.1 - 01.03.19 =
* Added option to send email notification for product role rules 
* Added option "roles restriction" for product roles rules

= 6.0 - 28.02.19 =
* Added option to skip "product role" rule application in case any previous has been already applied

= 5.9 - 28.02.19 =
* Typo
* Added option for "role by product" to set "and/or" purchase relation option

= 5.8 - 25.02.19 =
* Added option to assign product-role according the number of distinct items

= 5.7 - 18.02.19 =
* Fixed an issue with wcs_renewal_order_created filter

= 5.6 - 20.01.19 =
* Minor bugfix

= 5.5 - 21.12.18 =
* Minor bugfix

= 5.4 - 10.12.18 =
* Fixed an issue that may prevent product to be saved

= 5.3 - 07.12.18 =
* Minor bugfix related to WP 5.0

= 5.2 - 13.11.18 =
* Bug fix related to the activation system

= 5.1 - 30.10.18 =
* Fixed an issue with WP-CLI

= 5.0 - 29.10.18 =
* Added activation system

= 4.9 - 06.09.18 =
* Minor bugfix

= 4.8 - 24.07.18 =
* Fixed an issue due to guest cannot purchased item for which other user roles cannot purchase it

= 4.7 - 12.06.18 =
* Fixed an issue that prevented the activation on multisite installations

= 4.6 - 02.05.18 =
* Fixed an issue due to date and time were not properly parsed generating some warning message in the My Account page

= 4.5 - 24.04.18 =
* Fixed an issue that may prevent the registration process to properly complete

= 4.4 - 01.03.18 =
* Is now possible create role by product rule using product categories

= 4.3 - 16.12.18 =
* Minor bugfix

= 4.2 - 15.12.18 =
* Minor bugfix

= 4.1 - 18.11.17 =
* Minor bugfix

= 4.0 - 02.10.17 =
* Minor bugfix

= 3.9 - 21.09.17 =
* Fixed a conflict with  WooCommerce Point of Sale plugin

= 3.8 - 10.08.17 =
* Minor bugfix

= 3.7 - 03.08.17 =
* Minor bugfix

= 3.6 - 05.05.17 =
* Fixed an issue with variable products

= 3.5 - 30.05.17 =
* Added new feature to remove only the selected roles before assigning new ones or before expiration dates

= 3.4 - 07.04.17 =
* Improved compability with WooCommerce 3.0.1

= 3.3 - 07.03.17 =
* Fixed an issue with "Role by products" and exclude by order status feature

= 3.2 - 07.03.17 =
* Fixed an issue with WPML and role per products feature

= 3.1 - 23.02.17 =
* Restored dashboard date & time widget 

= 3.0 - 21.02.17 =
* Added support to upcoming WooCommerce 2.7

= 2.9 - 11.02.17 =
* Added subject field for notofication email
* Removed the offset option. Now the plugin syncronizes itself with the timezone setted in wordpress options

= 2.8 - 02.02.17 =
* Added option to send notification email on role assign

= 2.7 - 10.01.17 =
* Minor bugfix

= 2.6 - 23.12.16 =
* Bugfix

= 2.5 - 20.12.16 =
* WPML bugfix

= 2.4 - 08.12.16 =
* Minor bugfix

= 2.3 - 09.11.16 =
* Added option to assign "expire date roles" for "Product role" 

= 2.2 - 02.11.16 =
* Added new option to remove previous roles when user is buying a "role product" 

= 2.1 - 31.10.16 =
* Bugfix

= 2.0 - 19.10.16 =
* Small bugfix

= 1.9 - 11.10.16 =
* Added option to completely remove user roles before assigning new ones

= 1.8 - 30.09.16 =
* Added new sections on My Account Dashobord to keep an eye to current roles assigned to the user and next achievable roles 
* Added shortcode to render those sections in any page supporting shortcode system

= 1.7 - 22.09.16 =
* Fixed an issue that prevent the proper role assign when where selected categories as restriction filter

= 1.6 - 16.08.16 =
* Minor bugfix

= 1.5 - 26.05.16 =
* Plugin became Role-O-Matic
* Added feature to assign roles according to purchased products

= 1.4 - 14.04.16 =
* Minor bugfix 

= 1.3 - 09/04/16 =
* Added Scheduler: it's now possible to schedule user role recomputation

= 1.2 - 26/03/16 =
* Added new feature to select product by exclusion and include categories children
* Added new feature to compute role assignment in a time period different from the time period in which 
  is computed the amount spent

= 1.1 - 24/03/16 =
* Improved dates configurator
* Added dynamic periods

= 1.0 - 20/03/16 =
* Release

打赏

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

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

相关独立站主题

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

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