Add dynamic filter for WC total spent

[MAILPOET-3227]
This commit is contained in:
Jan Lysý
2021-04-21 11:18:09 +02:00
committed by Veljko V
parent d471e19f92
commit f63865b94c
6 changed files with 82 additions and 0 deletions

View File

@ -139,6 +139,8 @@ class DynamicSegments extends APIEndpoint {
return WPFunctions::get()->__('Please fill all required values.', 'mailpoet');
case InvalidFilterException::MISSING_NUMBER_OF_ORDERS_FIELDS:
return WPFunctions::get()->__('Please select a type for the comparison, a number of orders and a number of days.', 'mailpoet');
case InvalidFilterException::MISSING_TOTAL_SPENT_FIELDS:
return WPFunctions::get()->__('Please select a type for the comparison, an amount and a number of days.', 'mailpoet');
default:
return WPFunctions::get()->__('An error occurred while saving data.', 'mailpoet');
}