Support the development of TastyIgniter Learn more
I have started using tastyigniter and I am looking for a way to set delivery postcodes for each restaurant from a list rather than marking an area from Google maps.
I have tried to set the postcodes by selecting the address option in restaurant’s delivery tab.
I wouldn’t mind to set the postcodes list for each restaurant hard coded if someone can help me and tell me which file to edit on the ftp server.
You can use the delivery area address tab to do that.
Add address component type Postcode.
ryanmitchell Hello, Thanks for your reply. I tried that but it still give me the message that “We do not have any restaurants near you”.
I want the customer to be able to search just with typing the postcode and no need to type the whole address.
The postcode is a 4 digit number. For example 1234.
Hard to be sure how to direct you without more information so I can replicate your set up.. let me know restaurant address and sample addresses to enter so I can look into it
ryanmitchell If you mean actual restaurant address is:
Address: 5 Mouseiou
I have setup the restaurant to deliver to the following postcodes: 1102, 1103, 1110, 1150, 2064, 2480, 2440.
Please let me know if you need anything else.
Give me a screenshot of your delivery area set up… im not seeing the issue
ryanmitchell Hello Ryan,
here are the screenshots from the website:
Ive run some tests and i think the issue is that google maps isn’t matching that postcode (it matches to a Dublin address for me).
Generally google maps doesnt seem to be returning postcodes for me at all on Cyprus addresses (you can var_dump($userLocation); in extensions/local/traits/SearchesNearby.php around line 21).
ryanmitchell Is there a way to avoid the check from Google maps but just check that the postcode that the user typed is within the delivery list of the restaurant?
No, the lookup is uses to verify the address.
You could use the district names instead?
ryanmitchell Unfortunately all the websites here use the postcode method to identify the users location and the users have got used to this system so is hard to try to introduce a new way of lookup
I’ve tried with both Google and OpenStreetmaps and neither does cyprus postcode lookups for me. I dont really have a good solution for you other than you rewriting the onSearchNearby() function for your own needs.