Mass Actions with Multiple Filters

  • Posts: 70
  • Thank you received: 3
  • Hikashop Business
1 month 2 days ago #310078

Hello,

I would like to create a mass action which will notify me if a new user has a specific postal code.
The problem is that, the total postal codes are many (13k to be precise).

My question is: can I add all these postal codes to filters and divide them with comma? For example: 1000,1001,1002,1003 etc
If i cant do that with mass action, is there other way?

Thank you in advance.

Please Log in or Create an account to join the conversation.

  • Posts: 66889
  • Thank you received: 9887
  • MODERATOR
1 month 1 day ago #310079

Hi,

In the filter, instead of "=" or "LIKE", you can use "REGEXP" and then enter a regex in the field.
So you could have (1000|1001|1002) and it would match these.
And since it's regex, you can even optimize it.
For example, if you want to target all the post codes from 1000 to 1999 you could write: 1[0-9]{3}
www.regular-expressions.info/tutorial.html

Please Log in or Create an account to join the conversation.

  • Posts: 70
  • Thank you received: 3
  • Hikashop Business
1 month 1 day ago #310104

Hello,

I will use regular expressions.

Thank you very much for your answer/

Last edit: 1 month 1 day ago by Giscard.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum