Implement new WooCommerce dynamic segment based on the number of orders

[MAILPOET-3228]
This commit is contained in:
Rodrigo Primo
2021-04-13 14:22:33 -03:00
committed by Veljko V
parent 0153e63db0
commit 4f3738b0b1
11 changed files with 195 additions and 16 deletions

View File

@ -137,6 +137,8 @@ class DynamicSegments extends APIEndpoint {
return WPFunctions::get()->__('Please select category.', 'mailpoet');
case InvalidFilterException::MISSING_VALUE:
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');
default:
return WPFunctions::get()->__('An error occurred while saving data.', 'mailpoet');
}