How to prevent getting email alerts for a renewed listing?

I know there is not a setting, perhaps there is a code workaround.

The issue is as follows. Say you are subscribed to a category of listings and the expire times are short, lets say 7 days. On renewal you will recieve an new listing found email of an old listing (or at least the same listing you saw 7 days before).

So, how to prevent getting email alerts for a renewed listing?

Thanks for reporting this issue, we’ll fix this in future updates – indeed users shouldn’t receive notifications for renewed listings. Please let me know if you’re familiar with coding, I can provide general dev guidance as resolving this issue would require editing Search Alerts files directly.

Please provide general dev guidance. Thanks.

A possible solution is marking renewed listings with a custom flag, for example custom meta field “hp_renewed”. You can try setting it to “1” when the listing is renewed, this can be checked via the hivepress/v1/models/listing/update_status hook (when the status is changed from draft to pending, with the non-empty expiration time), or via the hivepress/v1/models/listing/update_expired_time hook (this may be easier).

Then you can modify the meta query here Loom | Free Screen & Video Recording Software | Loom to add a new clause where “hp_renewed” meta field doesn’t exist (NOT EXISTS comparison). This will exclude renewed listings from the search alert checks.

Hope this helps

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.