Mass Actions with Multiple Filters

  • Posts: 147
  • Thank you received: 9
  • Hikashop Business
4 years 7 months 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: 81481
  • Thank you received: 13062
  • MODERATOR
4 years 7 months 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: 147
  • Thank you received: 9
  • Hikashop Business
4 years 7 months ago #310104

Hello,

I will use regular expressions.

Thank you very much for your answer/

Last edit: 4 years 7 months ago by Giscard.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum