Introducing Rules – AutomateWoo v2.6

screenshot-2

AutomateWoo is getting a major upgrade today with release of the new ‘rules’ feature which improves the workflow editing UI and allows for far greater flexibility.

Upgrade Process

Rules improves on the existing ‘trigger options’ system and so a number of these options have been removed to keep the UI and codebase as clean as possible. All legacy options will be automagically migrated to the new rules system with the 2.6 database upgrade that you will be prompted to complete after updating the plugin.

screenshot-3

Rule Suggestions

There are a bunch of rules included in this initial release, many of add completely new functionality, but please let us know if you have ideas for new rules. We now have the ability to add many more rules without breaking the UI.

screenshot-4

One Breaking Change

There is one potentially breaking change that couldn’t be automatically migrated. It only affects you if you are using the Guest option that was present on the User Type trigger field. This field has been separated into two rules, User Role and Order Placed By Guest. This was done for technical reasons but we hope this is a more logical solution anyway.

Deprecated Trigger Methods

If you have developed custom triggers please note that a few methods have been deprecated and will be completely removed one month from today. It should be a simple matter of deleting these functions, rules will take over automatically.

AW_Trigger::add_user_limit_field()
AW_Trigger::add_guest_limit_field()
AW_Trigger::add_user_tags_field()
AW_Trigger::validate_user_tag_fields()
AW_Trigger::validate_user_type_field()
AW_Trigger::validate_limit_per_user()
AW_Trigger::validate_limit_per_guest()
AW_Trigger::validate_is_first_order_field()

More Developer Stuff

As a side note I just wanted to add that my goal of adding unit testing to the AutomateWoo development workflow has finally begun. There is 100% test coverage on the rules module!

Thank you!

Well I think its official, AutomateWoo is growing up :). A massive thanks to all everyone who has supported the project over the past year! I have been working full-time on AutomateWoo over the past few months and hope to bring more great features in the near future.