WooCommerce Role-O-Matic 插件 (WCRA) 是一个功能强大的工具,允许商店管理员创建“分配规则”,根据 在配置的时间段内花费的金额 或根据购买的产品.
这个工具可能非常有用,因为可以与 WooCommerce 定价! (或任何第三方插件)根据分配的角色分配动态价格或折扣。
现场演示
https://www.codecanyondemo.work/wcra/wp-admin
用户:演示
通过:演示
用户:demo2
通过:演示
用户:demo3
通过:演示
如何自动更新插件
要接收自动更新,只需安装并配置 Envato 更新程序插件:httpss://goo.gl/pkJS33。解释如何配置它的官方指南可以在以下链接中找到: httpss://envato.com/market-plugin .
运作方式
这非常简单。安装并激活后,主菜单中将出现一个新的“WooCommerce Role-O-Matic”语音,商店管理员可以从中访问
这 金额配置器 或产品配置器 菜单,通过这些菜单可以配置“角色分配规则”。
通过 金额配置器 可以定义规则,根据花费的金额 (不含税) 在配置的时间段内,
根据用户角色、最低花费金额(以及可选的最高花费金额)和产品/类别限制。
每次客户下订单或商店管理员保存订单或更改订单状态(使用WC_Order方法或管理区域)时,该插件都会检查是否存在任何与当前时间和金额相匹配的“金额角色规则”将其应用于客户。选择
每个规则分配都可以延迟指定必须进行角色分配的另一个日期。
通过 产品配置器 可以根据购买的产品分配角色。下订单后,将向客户分配与所购买产品相关的规则。此外,还可以配置有效期、产品购买限制等。
这对于管理订阅计划非常有用。
金额配置器 – 分配规则
使用“金额配置器”菜单可以创建具有以下选项的分配规则:
- 规则名称: 用于标识规则
- 时间段类型: 固定时间段(您可以定义多个日期)或动态(定义时间跨度,例如“过去 6 个月”或“过去 24 小时”)
- 日期(如果选择了固定时间段): 您可以配置多个用于计算金额的日期,并在该日期期间分配所选角色
- 生效计算日期: 如果要在延迟日期中分配角色,此选项非常有用。例如,您可以使用 Febraury 花费数据在 6 月期间分配特殊角色
- 时间范围跨度(如果选择了动态时间段): 时间跨度范围从“现在”(现在是用户访问网站的时刻)到用于订单检索以计算花费的金额。在此期间,如果检测到规则匹配,将应用选定的角色
- 时间类型(如果选择了动态时间段): 它可以是分钟/小时/天/月/年
- 角色限制: 您可以选择应用客户是否已经具有一个或多个角色的规则。
- 产品/类别限制: 只有当客户在所选产品/类别中花费了预定金额范围时,您才能选择应用规则。
- 最小/最大金额: 这些是最小/最大花费量值 (不含税),客户必须在配置的时间段之一内花费。如果是这样,将分配所选角色(在下一步中)。
- 要分配的角色(1): 如果金额已在配置的时间段内花费,则要分配给客户的角色。
- 角色删除: 如果用户已经有要分配的角色之一,但在该期间未花费配置的金额,则角色将被删除。
(1)必须在创建规则之前创建角色。要创建角色,请使用 嵌入式角色编辑器 或任何其他第三方插件。
产品配置器 – 分配规则
使用产品配置器,商店管理员可以轻松地将一个或多个用户角色关联到产品。因此,将为购买这些产品的客户分配关联的角色。这对于根据角色管理订阅计划非常有用。
或者,商店管理员还可以设置到期日期,一旦达到该日期将触发用户角色删除。到期日期可以是 相对 或固定.
第一个是相对于购买时间的,这意味着到期时间可能是购买后 1 个月。第二个是固定日期,例如“2016 年 3 月 2 日”。
此外,如果当前客户已经拥有所选角色,您还可以限制产品购买。如果未达到有效期,您也可以拒绝重新购买产品。
角色会根据购买日期和到期日期自动分配和删除。购买日期是标记为允许状态之一的最新订单(按日期而不是 id)下达的日期。
例: 如果将“正在处理”和“已完成”设置为允许状态,并且如果
用户下单时默认状态为“付款待处理”,在订单标记为“处理中”或“已完成”之前,不会分配购买时间和角色。
注意: 更改最晚订单日期将自动更新具有关联角色的订单项目的购买日期。
您可以通过 常规选项 菜单。
有效期延长: 该插件允许商店管理员让客户重新购买或不购买产品。这样,如果 e 相对有效期 与产品相关联,在下订单后
购买日期将更新为下订单的日期。
简码: 为了让您的客户知道他们的产品何时到期,您可以将[wcra_show_expiring_dates] 任何页面中的短代码。它将显示产品的有效期
对于当前用户。
自动角色重新计算
该插件能够定期重新计算角色(仅适用于“角色金额规则”)。商店管理员在常规选项菜单中必须启用此选项并选择时间跨度间隔(例如:每 2 小时、每 7 天等)和开始时间,插件将根据
对现有规则!
当客户访问站点时,也会自动重新计算基于产品的用户角色。
注意: 您可以通过常规选项 菜单。
角色重新计算器工具
默认情况下,在客户下订单后、在管理页面中编辑其订单之一后、更新其订单状态之一(使用WC_Order方法或管理区域)或在重新计算计划期间检查角色分配规则。
如果店铺管理员希望无需等待即可计算机角色(仅适用于“角色金额规则”),
他可以使用“角色重新计算器”。他只需单击“角色重新计算器”菜单语音,然后点击“重新计算”按钮,插件就会完成剩下的工作。就是这样!
注意: 您可以通过常规选项 菜单。
关于角色重新计算方法的注意事项
WordPress 和 Woocommerce 没有真正的调度程序。因此,每次用户访问站点时,插件都会重新计算用户角色,或者根据
自动角色重新计算 可以通过常规选项 菜单。
此方法使用本机wp_schedule_event 方法 (https://codex.wordpress.org/Function_Reference/wp_schedule_event ).计划事件作仅在有人时触发
如果预定时间已过,则访问您的 WordPress 网站。因此,角色可能会在预定日期后的某个时间被删除/分配。
嵌入式角色编辑器
WCRA 插件有一个内置的角色编辑器,允许商店管理员轻松创建新角色或删除旧的或未使用的角色。角色可用于分配特殊折扣
或价格使用 WooCommerce 定价! 或任何第三方插件。
密切关注当前分配的角色和下一个可实现的角色!
该插件会自动向用户添加“我的帐户”页面,在“仪表板”选项卡上,两个新部分可帮助用户了解哪个角色具有以及哪些角色可以实现
在当前期间。该插件显示他花了多少钱、错过了多少以及结束日期!
这两个部分都可以通过插件选项菜单禁用。 注意: 我的帐户页面信息显示仅适用于 WooCommerce 2.6 及更高版本。
短代码
想要在自定义页面中显示这些部分吗?没关系!
使用 [wcra_current_roles] 和[wcra_next_roles_list] 您可以在支持短代码系统的每个页面中显示每个部分!
注意: 使用特殊参数roles_to_not_show 您可以避免在角色列表中显示指定角色。例:[wcra_current_roles roles_to_not_show=“role_code1,role_code2”]
有关角色分配的电子邮件通知
为 按花费金额划分的角色 您可以选择为每个配置的规则配置通知电子邮件!通过这种方式,您可以向用户提供一些反馈!
金额配置器 – 规则分配示例
是否要为所有在春季花费至少 100 的客户分配一个特殊的“2016 年春季高级用户”角色?很简单:
- 创建新规则并分配名称/ID
- 时间段类型:固定
- 在其中 (3) 创建新日期:
- 开始日期:2016 年 3 月 20 日
- 结束日期:2016 年 6 月 21 日
- 是否要计算不同时期的角色分配?: 否(4)
- 角色限制:保持未选中状态
- 数量:100
- 最大金额:留空
- 角色删除:是 (2)
- 要分配的角色:“2016 年春季高级用户”(1)
是否要为当月至少消费 100 的所有客户分配一个特殊的“月高级用户”角色?您想申请吗
此特别优惠仅适用于今年的前 3 个月?给你:
- 创建新规则并分配名称/ID
- 时间段类型:固定
- 在其中 (3) 创建新日期:
- 开始日期:01/01/2016
- 结束日期:2016 年 6 月 29 日
- 是否要计算不同时间段内的角色分配?: 否
- 开始日期:2016 年 2 月 1 日
- 结束日期:2016 年 2 月 28 日
- 是否要计算不同时间段内的角色分配?: 否
- 开始日期:2016 年 3 月 1 日
- 结束日期:31/03/2016
- 是否要计算不同时间段内的角色分配?: 否
- 角色限制:保持未选中状态
- 数量:100
- 最大金额:留空
- 要分配的角色:“月高级用户”(1)
(1) 在创建规则之前必须创建角色。要创建角色,请使用 嵌入式角色编辑器 或任何其他第三方插件。
(2) 角色分配/删除是在客户下订单时、在管理页面上保存订单后、订单状态更新后(使用 WC_Order 方法)和计划期间计算的。
如果这些事件都未发生,则必须使用 角色重新计算器 在月初(或每当你发脾气时),以便
删除角色。
(3) 开始时间大于“现在”的日期规则将被忽略。
(4) 如果设置为是,则使用“弹簧数据”的角色分配不同到不同的日期。例如,此作业可以在另一个季节(例如:九月)完成。
WooCommerce 订阅
该插件支持由 Prospress 的 WooCommerce 订阅插件触发的以下作
- wcs_renewal_order_created :续订订单时触发
- wcs_resubscribe_order_created :创建重新订阅订单时触发,以记录客户重新订阅过期或已取消的订阅
当它们被触发时,插件会根据与订单关联的购买/续订商品重新执行角色分配。
WPML
该插件适用于使用 WPML 制作的翻译产品,没有任何问题。但请注意,通知电子邮件(产品角色和金额角色)主题和正文不能是
目标语言。
配套插件:WOOCOMMERCE 定价!
您想为 WooCommerce Role-O-Matic 插件使用的角色分配自定义价格或折扣吗?您可以!
WooCommerce 定价 就是你需要的!试一试!
WooCommerce Role-O-Matic 屏幕截图
“我的帐户”页面上列出的当前角色列表和下一个可实现的角色(可选)
产品配置器
[wcra_show_expiring_dates] ShotCode 的实际应用
用户管理员配置文件上的购买日期
更改日志
= 9.1 - 14.07.25 = * Fixed an issue related to the HPOS method = 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