I have a conundrum that has me flummoxed!! I’m guessing there could be a couple of potential solutions but as yet I keep hitting brick walls.
I have a restaurants channel with a batch of entries, I also have a special offers channel with an offer added as an entry. Back in the restaurants entry I have set up a related_entry to call in the offer and set an expiry date on the offer as directed in this thread. Now I’m using MX Google maps and everything works well, I can find restaurants in a given radius and if one of those restaurants has an offer within the valid period it will show the offer and after the period the offer is removed. What I need to do next is search for restaurants within the radius WITH special offers, to do this I need create a category for special offers and assign the category to the restaurant, here lies the issue. The restaurant(s) with a special offer is/are being returned but they are continually being returned after the special offer has expired. How can I expire the category so restaurants with expired offers are not returned, is there a way of dynamically setting/removing a category or is there another way around this. Any help on this is very much appreciated.
Cheers
Jon