Mass Actions with Multiple Filters

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

Hello,

I will use regular expressions.

Thank you very much for your answer/

Last edit: 5 years 4 months ago by Giscard.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum