Show products based on user location?

  • Posts: 24
  • Thank you received: 1
11 years 4 months ago #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 "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 or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 4 months ago #115242

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

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 24
  • Thank you received: 1
11 years 4 months ago #115398

Thanks for the reply.

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

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 4 months ago #115411

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 108
  • Thank you received: 6
10 years 9 months ago #145595

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 or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 8 months ago #145768

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 108
  • Thank you received: 6
10 years 8 months ago #145792

thanks Jerome,

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

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 8 months ago #145803

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 108
  • Thank you received: 6
10 years 8 months ago #147503

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

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 8 months ago #147505

Hi,

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

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.073 seconds
Powered by Kunena Forum