Add a new WooCommerce segment based on the value of the orders

[MAILPOET-4988]
This commit is contained in:
Rodrigo Primo
2023-03-16 15:44:35 -03:00
committed by Aschepikov
parent 47ca0d926b
commit b963d8b988
10 changed files with 197 additions and 3 deletions

View File

@@ -146,6 +146,7 @@ class DynamicSegments extends APIEndpoint {
case InvalidFilterException::MISSING_NUMBER_OF_ORDERS_FIELDS:
return __('Please select a type for the comparison, a number of orders and a number of days.', 'mailpoet');
case InvalidFilterException::MISSING_TOTAL_SPENT_FIELDS:
case InvalidFilterException::MISSING_SINGLE_ORDER_VALUE_FIELDS:
return __('Please select a type for the comparison, an amount and a number of days.', 'mailpoet');
case InvalidFilterException::MISSING_FILTER:
return __('Please add at least one condition for filtering.', 'mailpoet');