[Skip to main content](#vessel-content)

#   Show products based on user location?

##

- **[electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")**
- [![electronsi00's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/22839-electronsi00 "View electronsi00's Profile") Topic Author
- [ Offline](/forum/user/22839-electronsi00)

Less More

- Posts: 24
- Thank you received: 1
-
-

13 years 3 months ago [\#115191](#115191) by [electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")  *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#115191 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")* was created by *[electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")*

Hello

I will explain what I want to do, and maybe you can tell me the best way to program it?
I have HikaShop Starter, and HikaMarket.

I have a website, [ www.cottagemeal.com](http://www.cottagemeal.com) , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items "10 miles away, 15 miles away" etc.

Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.

How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#115242](#115242) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#115242 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

Hi,

We are currently working on the vendor listing for HikaMarket, it should help you for displaying vendors who are in the right perimeter.

Listing means filters too.
The filters from HikaShop business might not be interesting for your case but you will have the possibility to code your own filter rule.
The "problematic" point which will to convert the zip code (or city) into a geolocation for both vendors and users. Once you have some geolocation position, you can use specific SQL query in order to make the search.
[ stackoverflow.com/questions/1006654/fast...-two-lat-long-points](http://stackoverflow.com/questions/1006654/fastest-way-to-find-distance-between-two-lat-long-points)

After that, for a easier solution, we made a plugin called "vendorzipfilter" which allow the vendor to list (with wildcards) the zip codes allowed.
Only users with right zip code can see the vendor products in the product listing.
Maybe this plugin could be a base for another plugin or could be improved in order to introduce more features.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")**
- [![electronsi00's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/22839-electronsi00 "View electronsi00's Profile") Topic Author
- [ Offline](/forum/user/22839-electronsi00)

Less More

- Posts: 24
- Thank you received: 1
-
-

13 years 3 months ago [\#115398](#115398) by [electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")  Replied by *[electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#115398 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

Thanks for the reply.

Approximately when will the new HikaMarket (and plugin VendorZipFilter) be ready for download?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#115411](#115411) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#115411 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

Hi,

The "VendorZipFilter" is a custom plugin, it is not generic so I didn't include it into the HikaMarket package.
But I can send it to you by email if you want.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[christofu](/forum/user/31338-christofu "View christofu's Profile")**
- [![christofu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31338-christofu "View christofu's Profile")
- [ Offline](/forum/user/31338-christofu)

Less More

- Posts: 108
- Thank you received: 6
-
-

12 years 8 months ago [\#145595](#145595) by [christofu](/forum/user/31338-christofu "View christofu's Profile")  Replied by *[christofu](/forum/user/31338-christofu "View christofu's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#145595 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

Hi,

I was wondering if Multi-Vendor product implements the features mentioned above

i.e. asking a user for their location and showing products closest to them

(i am just re-asking the question in case their had been changes over the past few months)

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#145768](#145768) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#145768 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

Hi,

We are working on features for the next version of HikaShop to improve this part.
We have also work with the team of "MyMapsLocation" in order to make an integration between our two components.
Thanks to this integration, it will be possible to make a geographical search (a perimeter around an address) of vendors (hikamaket) or products (hikamarket / hikashop).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[christofu](/forum/user/31338-christofu "View christofu's Profile")**
- [![christofu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31338-christofu "View christofu's Profile")
- [ Offline](/forum/user/31338-christofu)

Less More

- Posts: 108
- Thank you received: 6
-
-

12 years 8 months ago [\#145792](#145792) by [christofu](/forum/user/31338-christofu "View christofu's Profile")  Replied by *[christofu](/forum/user/31338-christofu "View christofu's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#145792 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

thanks Jerome,

that sounds great. MyMapsLocation looks like a great component too. Is there an approximate ETA for the integration?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#145803](#145803) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#145803 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

Hi,

I know that the first part of the integration has been made (for the first features).
It should be in the next release of their component.
We will wait for users feedback in order to make choice for the other improvements for this integration.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[christofu](/forum/user/31338-christofu "View christofu's Profile")**
- [![christofu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31338-christofu "View christofu's Profile")
- [ Offline](/forum/user/31338-christofu)

Less More

- Posts: 108
- Thank you received: 6
-
-

12 years 7 months ago [\#147503](#147503) by [christofu](/forum/user/31338-christofu "View christofu's Profile")  Replied by *[christofu](/forum/user/31338-christofu "View christofu's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#147503 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

is there a description or listing of the current geo location features/functionality?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#147505](#147505) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show products based on user location?](/forum/19-hikamarket/85665-show-products-based-on-user-location#147505 "Hello  I will explain what I want to do, and maybe you can tell me the best way to program it? I have HikaShop Starter, and HikaMarket.  I have a website,   www.cottagemeal.com  , where multiple vendors will sell their items. When a user comes to the website, I want to ask them for their location (Zip code, or city). Based on their location, I want to show them items from vendors that are located nearby to them. So they can filter items &quot;10 miles away, 15 miles away&quot; etc.  Also, if one of my vendors wants to deliver to a 20 km radius around their location, I want this vendor's product to show up based on the location inputted by the user.  How would I program something like this using HikaShop? If exactly what I want is not available, can you please recommend something similar?")*

Hi,

I am sorry but I do not understand your question.
The topic does not talk about the geolocation.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODU2NjUtc2hvdy1wcm9kdWN0cy1iYXNlZC1vbi11c2VyLWxvY2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.725 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
