Skip to content

Commit 873e4c5

Browse files
authored
modernize and optimize task (#531)
1 parent d5ae6dc commit 873e4c5

File tree

3 files changed

+236
-112
lines changed

3 files changed

+236
-112
lines changed

docs/auto-tag-customers-having-a-rolling-minimum-total-spend/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Tags: Auto-Tag, Customers, Spend
44

5-
This task runs daily to maintain tags for any customers that have a certain spending threshold within a rolling period of order history. Useful for rewarding customers who keep a consistent spend total.
5+
This task runs daily to maintain tags for any customers that have a certain spending threshold within a rolling period of order history. Useful for rewarding customers who keep a consistent spend total. Select to have the rolling spend calculated using either "Total sales" (_net sales + additional fess + duties + shipping charges + taxes_) or only "Net sales" (_gross sales - discounts - returns_).
66

77
* View in the task library: [tasks.mechanic.dev/auto-tag-customers-having-a-rolling-minimum-total-spend](https://tasks.mechanic.dev/auto-tag-customers-having-a-rolling-minimum-total-spend)
88
* Task JSON, for direct import: [task.json](../../tasks/auto-tag-customers-having-a-rolling-minimum-total-spend.json)
@@ -12,11 +12,13 @@ This task runs daily to maintain tags for any customers that have a certain spen
1212

1313
```json
1414
{
15+
"sales_calculation_to_use__choice_o1_total_sales_o2_net_sales_required": "total_sales",
1516
"minimum_total_spent__number_required": null,
1617
"customer_tag_to_apply__required": null,
1718
"days_of_order_history_to_consider__number_required": 30,
1819
"only_monitor_customers_having_this_tag": null,
19-
"run_hourly_instead_of_daily__boolean": null
20+
"run_hourly_instead_of_daily__boolean": null,
21+
"test_mode__boolean": false
2022
}
2123
```
2224

@@ -37,9 +39,11 @@ mechanic/user/trigger
3739

3840
## Documentation
3941

40-
This task runs daily to maintain tags for any customers that have a certain spending threshold within a rolling period of order history. Useful for rewarding customers who keep a consistent spend total.
42+
This task runs daily to maintain tags for any customers that have a certain spending threshold within a rolling period of order history. Useful for rewarding customers who keep a consistent spend total. Select to have the rolling spend calculated using either "Total sales" (_net sales + additional fess + duties + shipping charges + taxes_) or only "Net sales" (_gross sales - discounts - returns_).
4143

42-
Optionally, choose to filter by customers who have a specific tag, or to run hourly instead of daily for increased tagging frequency.
44+
Optionally, choose to filter by customers who have a specific tag, or to run hourly instead of daily for increased tagging frequency, or to run the task in "Test mode".
45+
46+
The "Test mode" option is highly recommended if you expect the task to make a lot of tagging changes (e.g. during initial set up), and you'd like to review the task run log of what it would do without making the actual tag updates. Just remember to turn off the test mode when you are ready for the daily (or hourly) scheduled task runs to make updates.
4347

4448
## Installing this task
4549

0 commit comments

Comments
 (0)